about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/ArchipelagoManager.cs
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-23 08:45:59 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-23 08:45:59 -0400
commitc35f790350e8494677bcf200438561c3099c9c4a (patch)
treea6ffdf7e39bbb7c2716667a2d74a70d65bc0d938 /AnodyneArchipelago/ArchipelagoManager.cs
parent6ef358e1a1cddd853ff0245bb27669cdcc049dc6 (diff)
downloadanodyne-archipelago-c35f790350e8494677bcf200438561c3099c9c4a.tar.gz
anodyne-archipelago-c35f790350e8494677bcf200438561c3099c9c4a.tar.bz2
anodyne-archipelago-c35f790350e8494677bcf200438561c3099c9c4a.zip
Added Card item
Diffstat (limited to 'AnodyneArchipelago/ArchipelagoManager.cs')
-rw-r--r--AnodyneArchipelago/ArchipelagoManager.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/AnodyneArchipelago/ArchipelagoManager.cs b/AnodyneArchipelago/ArchipelagoManager.cs index 781a335..a882cd8 100644 --- a/AnodyneArchipelago/ArchipelagoManager.cs +++ b/AnodyneArchipelago/ArchipelagoManager.cs
@@ -1,5 +1,6 @@
1using AnodyneSharp.Entities; 1using AnodyneSharp.Entities;
2using AnodyneSharp.Entities.Enemy.Redcave; 2using AnodyneSharp.Entities.Enemy.Redcave;
3using AnodyneSharp.Entities.Gadget.Treasures;
3using AnodyneSharp.Registry; 4using AnodyneSharp.Registry;
4using AnodyneSharp.Sounds; 5using AnodyneSharp.Sounds;
5using Archipelago.MultiClient.Net; 6using Archipelago.MultiClient.Net;
@@ -189,6 +190,12 @@ namespace AnodyneArchipelago
189 { 190 {
190 GlobalState.events.IncEvent("ProgressiveRedGrotto"); 191 GlobalState.events.IncEvent("ProgressiveRedGrotto");
191 } 192 }
193 else if (itemName == "Card")
194 {
195 CardTreasure cardTreasure = new(Plugin.Player.Position, GlobalState.inventory.CardCount);
196 cardTreasure.GetTreasure();
197 GlobalState.SpawnEntity(cardTreasure);
198 }
192 199
193 string message; 200 string message;
194 if (item.Player == _session.ConnectionInfo.Slot) 201 if (item.Player == _session.ConnectionInfo.Slot)