From cbfd3624c4f5b299a6f88741104390b97a570b88 Mon Sep 17 00:00:00 2001 From: IProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com> Date: Tue, 12 Dec 2023 02:58:30 -0500 Subject: [PATCH] Cash and Ash presents (#22391) --- .../Entities/Objects/Decoration/flora.yml | 7 ++- .../Entities/Objects/Decoration/present.yml | 50 +++++++++++++++++++ 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/Resources/Prototypes/Entities/Objects/Decoration/flora.yml b/Resources/Prototypes/Entities/Objects/Decoration/flora.yml index 0ede50f53e..2a448274db 100644 --- a/Resources/Prototypes/Entities/Objects/Decoration/flora.yml +++ b/Resources/Prototypes/Entities/Objects/Decoration/flora.yml @@ -423,10 +423,13 @@ - id: PresentRandom orGroup: present - id: PresentRandomUnsafe - prob: 0.25 + prob: 0.35 orGroup: present - id: PresentRandomInsane - prob: 0.10 + prob: 0.20 + orGroup: present + - id: PresentRandomCash + prob: 0.20 orGroup: present receivedPopup: christmas-tree-got-gift deniedPopup: christmas-tree-no-gift diff --git a/Resources/Prototypes/Entities/Objects/Decoration/present.yml b/Resources/Prototypes/Entities/Objects/Decoration/present.yml index a7fd1cd1de..e7dfdc234f 100644 --- a/Resources/Prototypes/Entities/Objects/Decoration/present.yml +++ b/Resources/Prototypes/Entities/Objects/Decoration/present.yml @@ -360,6 +360,56 @@ sound: path: /Audio/Effects/unwrap.ogg +- type: entity + id: PresentRandomAsh + parent: [PresentBase, BaseItem] + suffix: Filled Ash + components: + - type: SpawnItemsOnUse + items: + - id: PresentTrash + - id: Ash # No coal yet! + orGroup: GiftPool + sound: + path: /Audio/Effects/unwrap.ogg + +- type: entity + id: PresentRandomCash + parent: [PresentBase, BaseItem] + suffix: Filled Cash + components: + - type: SpawnItemsOnUse + items: + - id: PresentTrash + - id: SpaceCash + prob: .01 + orGroup: GiftPool + - id: SpaceCash10 + prob: .1 + orGroup: GiftPool + - id: SpaceCash100 + prob: .5 + orGroup: GiftPool + - id: SpaceCash500 + orGroup: GiftPool + - id: SpaceCash1000 + prob: .01 + orGroup: GiftPool + - id: SpaceCash2500 + prob: .004 + orGroup: GiftPool + - id: SpaceCash5000 + prob: .002 + orGroup: GiftPool + - id: SpaceCash10000 + prob: .001 + orGroup: GiftPool + - id: SpaceCash1000000 + prob: .000001 + orGroup: GiftPool + sound: + path: /Audio/Effects/unwrap.ogg + - type: entity id: PresentTrash noSpawn: true -- 2.51.2