diff options
Diffstat (limited to 'AnodyneArchipelago/ArchipelagoTreasure.cs')
-rw-r--r-- | AnodyneArchipelago/ArchipelagoTreasure.cs | 22 |
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 @@ | |||
1 | using AnodyneSharp.Entities.Gadget.Treasures; | 1 | using AnodyneSharp.Entities; |
2 | using AnodyneSharp.Entities.Gadget.Treasures; | ||
3 | using AnodyneSharp.Registry; | ||
2 | using Microsoft.Xna.Framework; | 4 | using Microsoft.Xna.Framework; |
3 | 5 | ||
4 | namespace AnodyneArchipelago | 6 | namespace 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 | } |