Added CE's advanced magboots (#6344)
@@ -5,6 +5,8 @@ using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Clothing
|
||||
{
|
||||
@@ -23,9 +25,15 @@ namespace Content.Shared.Clothing
|
||||
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;
|
||||
public float SprintSpeedModifier => On ? 0.65f : 1;
|
||||
[DataField("sprintMoveCoeffecient", required: true)]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float SprintMoveCoeffecient = 0.65f;
|
||||
public float WalkSpeedModifier => On ? WalkMoveCoeffecient : 1;
|
||||
public float SprintSpeedModifier => On ? SprintMoveCoeffecient : 1;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class MagbootsComponentState : ComponentState
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
- id: ClothingEyesGlassesMeson
|
||||
- id: ClothingBeltChiefEngineerFilled
|
||||
- id: ClothingHeadHatBeretEngineering
|
||||
- id: ClothingShoesBootsMag
|
||||
- id: ClothingShoesBootsMagAdv
|
||||
- id: ClothingHandsGlovesColorYellow
|
||||
- id: CigarCase
|
||||
prob: 0.15
|
||||
|
||||
@@ -13,3 +13,18 @@
|
||||
- type: ItemActions
|
||||
actions:
|
||||
- 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
|
||||
|
||||
@@ -110,9 +110,9 @@
|
||||
prototype: IDComputerCircuitboard
|
||||
|
||||
- type: objective
|
||||
id: MagbootsStealObjective #Replace this with CE magboots when we get those
|
||||
id: MagbootsStealObjective
|
||||
issuer: syndicate
|
||||
difficultyOverride: 1.75
|
||||
difficultyOverride: 2.75
|
||||
requirements:
|
||||
- !type:TraitorRequirement {}
|
||||
- !type:IncompatibleConditionsRequirement
|
||||
@@ -120,7 +120,7 @@
|
||||
- DieCondition
|
||||
conditions:
|
||||
- !type:StealCondition
|
||||
prototype: ClothingShoesBootsMag
|
||||
prototype: ClothingShoesBootsMagAdv
|
||||
|
||||
- type: objective
|
||||
id: SupplyConsoleBoardStealObjective
|
||||
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 6.3 KiB |