From f6bf7b8576a6c2a7d89d463b4998c44324d6d370 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 22 May 2024 13:57:28 -0400 Subject: 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. --- AnodyneArchipelago/ArchipelagoTreasure.cs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'AnodyneArchipelago/ArchipelagoTreasure.cs') 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 @@ -using AnodyneSharp.Entities.Gadget.Treasures; +using AnodyneSharp.Entities; +using AnodyneSharp.Entities.Gadget.Treasures; +using AnodyneSharp.Registry; using Microsoft.Xna.Framework; namespace AnodyneArchipelago @@ -14,7 +16,23 @@ namespace AnodyneArchipelago public override void GetTreasure() { - base.GetTreasure(); + if (_location == "Street - Broom Chest") + { + BroomTreasure broomTreasure = new("broom-icon", this.Position, BroomType.Normal); + broomTreasure.GetTreasure(); + GlobalState.SpawnEntity(broomTreasure); + } + else if (_location == "Street - Key Chest") + { + KeyTreasure keyTreasure = new(this.Position); + keyTreasure.GetTreasure(); + GlobalState.SpawnEntity(keyTreasure); + } + else + { + base.GetTreasure(); + } + ArchipelagoManager.SendLocation(_location); } } -- cgit 1.4.1