From ab98a1b0123b03711fd47aa009194234fbbdc54b Mon Sep 17 00:00:00 2001 From: Firewatch <54725557+musicmanvr@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:39:18 -0400 Subject: [PATCH] box can open and more --- Resources/Prototypes/Catalog/Fills/Boxes/general.yml | 7 +++++++ Resources/Prototypes/Entities/Objects/Fun/toys.yml | 12 +++++++++++- .../Textures/Objects/Fun/pet_rock_box.rsi/meta.json | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Resources/Prototypes/Catalog/Fills/Boxes/general.yml b/Resources/Prototypes/Catalog/Fills/Boxes/general.yml index 940c474bdd8fa3..4ca3c8bca77a03 100644 --- a/Resources/Prototypes/Catalog/Fills/Boxes/general.yml +++ b/Resources/Prototypes/Catalog/Fills/Boxes/general.yml @@ -502,5 +502,12 @@ - id: RoxieRock amount: 1 prob: 0.3 + - type: GenericVisualizer + visuals: + enum.StorageVisuals.Open: + base: + True: { state: icon-open } + False: { state: icon } + - type: Appearance diff --git a/Resources/Prototypes/Entities/Objects/Fun/toys.yml b/Resources/Prototypes/Entities/Objects/Fun/toys.yml index 6f02cfded7113d..3e528d146c3366 100644 --- a/Resources/Prototypes/Entities/Objects/Fun/toys.yml +++ b/Resources/Prototypes/Entities/Objects/Fun/toys.yml @@ -1522,7 +1522,7 @@ prob: 1 makeSentient: true allowSpeech: true - allowMovement: false + allowMovement: true name: ghost-role-information-petrock-name description: ghost-role-information-petrock-description - type: GhostTakeoverAvailable @@ -1531,12 +1531,20 @@ sprite: Objects/Fun/pet_rock.rsi slots: - HEAD + - type: MovementSpeedModifier + baseWalkSpeed: 0.02 + baseSprintSpeed: 0.04 + - type: NoRotateOnInteract + - type: NoRotateOnMove - type: StaminaDamageOnCollide damage: 5 - type: DamageOtherOnHit damage: types: Blunt: 3 + - type: Tag + tags: + - CannotSuicide - type: entity parent: BasePetRock @@ -1564,6 +1572,8 @@ - type: Sprite sprite: Objects/Fun/pet_rock.rsi state: icon + - type: NameIdentifier + group: GenericNumber - type: PhysicalComposition materialComposition: Steel: 10 diff --git a/Resources/Textures/Objects/Fun/pet_rock_box.rsi/meta.json b/Resources/Textures/Objects/Fun/pet_rock_box.rsi/meta.json index 5a4f1e976ab810..2190039999d0bc 100644 --- a/Resources/Textures/Objects/Fun/pet_rock_box.rsi/meta.json +++ b/Resources/Textures/Objects/Fun/pet_rock_box.rsi/meta.json @@ -16,10 +16,10 @@ "directions": 4 }, { - "name": "icon" + "name": "icon" }, { - "name": "icon-open" + "name": "icon-open" } ] }