about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/ArchipelagoTreasure.cs
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-22 13:57:28 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-22 13:57:28 -0400
commitf6bf7b8576a6c2a7d89d463b4998c44324d6d370 (patch)
treead8a8aab9c659ade37bdf5cb6e686d7e2fc6efd6 /AnodyneArchipelago/ArchipelagoTreasure.cs
parentf717a556a909b831cb6965bcd2f8e057053e5161 (diff)
downloadanodyne-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.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 }