Coal presents and chrimmas tree options. Presents no longer itemify (#33147)
* Dont ensure ItemComp because it could lead to weirds, and also PickupOrDrop handles non-items already. * presents and tree * woops * reviews a
This commit is contained in:
parent
a44b50dcfe
commit
1689950693
|
|
@ -60,7 +60,6 @@ public sealed class RandomGiftSystem : EntitySystem
|
|||
var coords = Transform(args.User).Coordinates;
|
||||
var handsEnt = Spawn(component.SelectedEntity, coords);
|
||||
_adminLogger.Add(LogType.EntitySpawn, LogImpact.Low, $"{ToPrettyString(args.User)} used {ToPrettyString(uid)} which spawned {ToPrettyString(handsEnt)}");
|
||||
EnsureComp<ItemComponent>(handsEnt); // For insane mode.
|
||||
if (component.Wrapper is not null)
|
||||
Spawn(component.Wrapper, coords);
|
||||
|
||||
|
|
|
|||
|
|
@ -463,5 +463,7 @@ RightLegBorgJanitor: RightLegBorg
|
|||
HeadBorgJanitor: LightHeadBorg
|
||||
TorsoBorgJanitor: TorsoBorg
|
||||
|
||||
# 2024-11-17
|
||||
PresentRandomAsh: PresentRandomCoal
|
||||
# 2024-11-19
|
||||
CrateCrewMonitoringBoards: CrateCrewMonitoring
|
||||
|
|
|
|||
|
|
@ -463,7 +463,7 @@
|
|||
- type: entity
|
||||
parent: BaseTreeConifer
|
||||
id: FloraTreeChristmas02
|
||||
suffix: PresentsGiver
|
||||
suffix: Safe Presents
|
||||
name: christmas tree
|
||||
components:
|
||||
- type: Sprite
|
||||
|
|
@ -481,16 +481,33 @@
|
|||
spawnEntries:
|
||||
- id: PresentRandom
|
||||
orGroup: present
|
||||
- id: PresentRandomCash
|
||||
prob: 0.20
|
||||
- id: PresentRandomCash # buy your own.
|
||||
prob: 0.1
|
||||
orGroup: present
|
||||
- id: PresentRandomAsh
|
||||
- id: PresentRandomCoal # naughty
|
||||
prob: 0.05
|
||||
orGroup: present
|
||||
receivedPopup: christmas-tree-got-gift
|
||||
deniedPopup: christmas-tree-no-gift
|
||||
requiredHoliday: FestiveSeason
|
||||
|
||||
- type: entity
|
||||
parent: FloraTreeChristmas02
|
||||
id: FloraTreeChristmas03
|
||||
suffix: Insane Presents
|
||||
name: christmas tree
|
||||
components:
|
||||
- type: LimitedItemGiver
|
||||
spawnEntries:
|
||||
- id: PresentRandom
|
||||
orGroup: present
|
||||
- id: PresentRandomUnsafe
|
||||
prob: 0.5
|
||||
orGroup: present
|
||||
- id: PresentRandomInsane
|
||||
prob: 0.2
|
||||
orGroup: present
|
||||
|
||||
- type: entity
|
||||
parent: BaseTreeConifer
|
||||
id: FloraTreeStumpConifer
|
||||
|
|
|
|||
|
|
@ -386,14 +386,23 @@
|
|||
path: /Audio/Effects/unwrap.ogg
|
||||
|
||||
- type: entity
|
||||
id: PresentRandomAsh
|
||||
id: PresentRandomCoal
|
||||
parent: [PresentBase, BaseItem]
|
||||
suffix: Filled Ash
|
||||
suffix: Filled Coal
|
||||
components:
|
||||
- type: SpawnItemsOnUse
|
||||
items:
|
||||
- id: PresentTrash
|
||||
- id: Ash # No coal yet!
|
||||
- id: Coal1
|
||||
orGroup: GiftPool
|
||||
- id: Coal5
|
||||
prob: .4
|
||||
orGroup: GiftPool
|
||||
- id: Coal10
|
||||
prob: .2
|
||||
orGroup: GiftPool
|
||||
- id: Coal15
|
||||
prob: .1
|
||||
orGroup: GiftPool
|
||||
sound:
|
||||
path: /Audio/Effects/unwrap.ogg
|
||||
|
|
|
|||
|
|
@ -333,6 +333,30 @@
|
|||
- type: Stack
|
||||
count: 1
|
||||
|
||||
- type: entity
|
||||
parent: Coal
|
||||
id: Coal5
|
||||
suffix: Five
|
||||
components:
|
||||
- type: Stack
|
||||
count: 5
|
||||
|
||||
- type: entity
|
||||
parent: Coal
|
||||
id: Coal10
|
||||
suffix: Ten
|
||||
components:
|
||||
- type: Stack
|
||||
count: 10
|
||||
|
||||
- type: entity
|
||||
parent: Coal
|
||||
id: Coal15
|
||||
suffix: Fifteen
|
||||
components:
|
||||
- type: Stack
|
||||
count: 15
|
||||
|
||||
- type: entity
|
||||
parent: OreBase
|
||||
id: SaltOre
|
||||
|
|
|
|||
Loading…
Reference in New Issue