diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-22 13:57:28 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-22 13:57:28 -0400 |
commit | f6bf7b8576a6c2a7d89d463b4998c44324d6d370 (patch) | |
tree | ad8a8aab9c659ade37bdf5cb6e686d7e2fc6efd6 /AnodyneArchipelago/ArchipelagoTreasure.cs | |
parent | f717a556a909b831cb6965bcd2f8e057053e5161 (diff) | |
download | anodyne-archipelago-f6bf7b8576a6c2a7d89d463b4998c44324d6d370.tar.gz anodyne-archipelago-f6bf7b8576a6c2a7d89d463b4998c44324d6d370.tar.bz2 anodyne-archipelago-f6bf7b8576a6c2a7d89d463b4998c44324d6d370.zip |
More stuff!
Big keys are now locations. Health cicadas work now, both as locations and items. The two checks in the Street now also give their vanilla items.
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 | } |