about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/ArchipelagoTreasure.cs
diff options
context:
space:
mode:
Diffstat (limited to 'AnodyneArchipelago/ArchipelagoTreasure.cs')
-rw-r--r--AnodyneArchipelago/ArchipelagoTreasure.cs22
1 files changed, 20 insertions, 2 deletions
diff --git a/AnodyneArchipelago/ArchipelagoTreasure.cs b/AnodyneArchipelago/ArchipelagoTreasure.cs index 6d000e8..b3812f2 100644 --- a/AnodyneArchipelago/ArchipelagoTreasure.cs +++ b/AnodyneArchipelago/ArchipelagoTreasure.cs
@@ -1,4 +1,6 @@
1using AnodyneSharp.Entities.Gadget.Treasures; 1using AnodyneSharp.Entities;
2using AnodyneSharp.Entities.Gadget.Treasures;
3using AnodyneSharp.Registry;
2using Microsoft.Xna.Framework; 4using Microsoft.Xna.Framework;
3 5
4namespace AnodyneArchipelago 6namespace AnodyneArchipelago
@@ -14,7 +16,23 @@ namespace AnodyneArchipelago
14 16
15 public override void GetTreasure() 17 public override void GetTreasure()
16 { 18 {
17 base.GetTreasure(); 19 if (_location == "Street - Broom Chest")
20 {
21 BroomTreasure broomTreasure = new("broom-icon", this.Position, BroomType.Normal);
22 broomTreasure.GetTreasure();
23 GlobalState.SpawnEntity(broomTreasure);
24 }
25 else if (_location == "Street - Key Chest")
26 {
27 KeyTreasure keyTreasure = new(this.Position);
28 keyTreasure.GetTreasure();
29 GlobalState.SpawnEntity(keyTreasure);
30 }
31 else
32 {
33 base.GetTreasure();
34 }
35
18 ArchipelagoManager.SendLocation(_location); 36 ArchipelagoManager.SendLocation(_location);
19 } 37 }
20 } 38 }