Toggleable clothing changes (#19680)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Tony
2023-09-01 14:12:59 +03:00
committed by GitHub
parent 6dcccf8d0c
commit c764a40a69
6 changed files with 9 additions and 4 deletions

View File

@@ -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";

View File

@@ -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.

View File

@@ -96,7 +96,7 @@
event: !type:UseDnaScramblerImplantEvent
- type: instantAction
id: ToggleSuitHelmet
id: ToggleSuitPiece
name: action-name-hardsuit
description: action-description-hardsuit
itemIconStyle: BigItem

View File

@@ -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 {}

View File

@@ -68,6 +68,7 @@
Heat: 0.90
Radiation: 0.25
- type: ToggleableClothing
slot: head
- type: ContainerContainer
containers:
toggleable-clothing: !type:ContainerSlot {}

View File

@@ -48,6 +48,7 @@
coefficient: 0.5
- type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetEVALarge
slot: head
- type: ContainerContainer
containers:
toggleable-clothing: !type:ContainerSlot {}