Added CE's advanced magboots (#6344)

This commit is contained in:
Rane
2022-01-28 13:28:05 -05:00
committed by GitHub
parent 79243d1379
commit 9012623c02
13 changed files with 70 additions and 6 deletions

View File

@@ -5,6 +5,8 @@ using Robust.Shared.Containers;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
using Robust.Shared.GameStates; using Robust.Shared.GameStates;
using Robust.Shared.Serialization; using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Shared.Clothing namespace Content.Shared.Clothing
{ {
@@ -23,9 +25,15 @@ namespace Content.Shared.Clothing
EntitySystem.Get<MovementSpeedModifierSystem>().RefreshMovementSpeedModifiers(container.Owner); EntitySystem.Get<MovementSpeedModifierSystem>().RefreshMovementSpeedModifiers(container.Owner);
} }
} }
[DataField("walkMoveCoeffecient", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public float WalkMoveCoeffecient = 0.85f;
public float WalkSpeedModifier => On ? 0.85f : 1; [DataField("sprintMoveCoeffecient", required: true)]
public float SprintSpeedModifier => On ? 0.65f : 1; [ViewVariables(VVAccess.ReadWrite)]
public float SprintMoveCoeffecient = 0.65f;
public float WalkSpeedModifier => On ? WalkMoveCoeffecient : 1;
public float SprintSpeedModifier => On ? SprintMoveCoeffecient : 1;
[Serializable, NetSerializable] [Serializable, NetSerializable]
public sealed class MagbootsComponentState : ComponentState public sealed class MagbootsComponentState : ComponentState

View File

@@ -110,7 +110,7 @@
- id: ClothingEyesGlassesMeson - id: ClothingEyesGlassesMeson
- id: ClothingBeltChiefEngineerFilled - id: ClothingBeltChiefEngineerFilled
- id: ClothingHeadHatBeretEngineering - id: ClothingHeadHatBeretEngineering
- id: ClothingShoesBootsMag - id: ClothingShoesBootsMagAdv
- id: ClothingHandsGlovesColorYellow - id: ClothingHandsGlovesColorYellow
- id: CigarCase - id: CigarCase
prob: 0.15 prob: 0.15

View File

@@ -13,3 +13,18 @@
- type: ItemActions - type: ItemActions
actions: actions:
- actionType: ToggleMagboots - actionType: ToggleMagboots
- type: entity
parent: ClothingShoesBootsMag
id: ClothingShoesBootsMagAdv
name: advanced magboots
description: State-of-the-art magnetic boots that do not slow down their wearer.
components:
- type: Sprite
sprite: Clothing/Shoes/Boots/magboots-advanced.rsi
state: icon
- type: Clothing
sprite: Clothing/Shoes/Boots/magboots-advanced.rsi
- type: Magboots
walkMoveCoeffecient: 1
sprintMoveCoeffecient: 1

View File

@@ -110,9 +110,9 @@
prototype: IDComputerCircuitboard prototype: IDComputerCircuitboard
- type: objective - type: objective
id: MagbootsStealObjective #Replace this with CE magboots when we get those id: MagbootsStealObjective
issuer: syndicate issuer: syndicate
difficultyOverride: 1.75 difficultyOverride: 2.75
requirements: requirements:
- !type:TraitorRequirement {} - !type:TraitorRequirement {}
- !type:IncompatibleConditionsRequirement - !type:IncompatibleConditionsRequirement
@@ -120,7 +120,7 @@
- DieCondition - DieCondition
conditions: conditions:
- !type:StealCondition - !type:StealCondition
prototype: ClothingShoesBootsMag prototype: ClothingShoesBootsMagAdv
- type: objective - type: objective
id: SupplyConsoleBoardStealObjective id: SupplyConsoleBoardStealObjective

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@@ -0,0 +1,41 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/tgstation/tgstation/commit/3d319f6157acc1c1cd9ebcb0f6f12641e051cf91",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "equipped-FEET",
"directions": 4
},
{
"name": "on-equipped-FEET",
"directions": 4
},
{
"name": "icon"
},
{
"name": "icon-on"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "on-inhand-left",
"directions": 4
},
{
"name": "on-inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB