Toggleable clothing changes (#19680)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ public sealed partial class ToggleableClothingComponent : Component
|
||||
/// Action used to toggle the clothing on or off.
|
||||
/// </summary>
|
||||
[DataField("actionId", customTypeSerializer: typeof(PrototypeIdSerializer<InstantActionPrototype>))]
|
||||
public string ActionId = "ToggleSuitHelmet";
|
||||
public string ActionId = "ToggleSuitPiece";
|
||||
public InstantAction? ToggleAction = null;
|
||||
|
||||
/// <summary>
|
||||
@@ -33,6 +33,7 @@ public sealed partial class ToggleableClothingComponent : Component
|
||||
/// <summary>
|
||||
/// The inventory slot that the clothing is equipped to.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("slot")]
|
||||
public string Slot = "head";
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
action-name-hardsuit = Toggle Helmet
|
||||
action-description-hardsuit = Remember to equip the helmet before flinging yourself into space.
|
||||
action-name-hardsuit = Toggle Suit Piece
|
||||
action-description-hardsuit = Remember to equip the important pieces of your suit before going into action.
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
event: !type:UseDnaScramblerImplantEvent
|
||||
|
||||
- type: instantAction
|
||||
id: ToggleSuitHelmet
|
||||
id: ToggleSuitPiece
|
||||
name: action-name-hardsuit
|
||||
description: action-description-hardsuit
|
||||
itemIconStyle: BigItem
|
||||
|
||||
@@ -127,6 +127,7 @@
|
||||
clothingPrototype: ClothingHeadHatHoodGoliathCloak
|
||||
requiredSlot:
|
||||
- neck
|
||||
slot: head
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
toggleable-clothing: !type:ContainerSlot {}
|
||||
@@ -152,6 +153,7 @@
|
||||
clothingPrototype: ClothingHeadHatHoodMoth
|
||||
requiredSlot:
|
||||
- neck
|
||||
slot: head
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
toggleable-clothing: !type:ContainerSlot {}
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
Heat: 0.90
|
||||
Radiation: 0.25
|
||||
- type: ToggleableClothing
|
||||
slot: head
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
toggleable-clothing: !type:ContainerSlot {}
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
coefficient: 0.5
|
||||
- type: ToggleableClothing
|
||||
clothingPrototype: ClothingHeadHelmetEVALarge
|
||||
slot: head
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
toggleable-clothing: !type:ContainerSlot {}
|
||||
|
||||
Reference in New Issue
Block a user