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