about summary refs log tree commit diff stats
path: root/AnodyneArchipelago
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-26 00:49:17 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-26 00:49:17 -0400
commitd179faefd1d663347fb1a332b3c15bb9cf373955 (patch)
tree903da1a7352f18dd3d5ff570ff1b51f7dc9d466f /AnodyneArchipelago
parent6b2f33a4e77b65530f1169e96b9407659c183edd (diff)
downloadanodyne-archipelago-d179faefd1d663347fb1a332b3c15bb9cf373955.tar.gz
anodyne-archipelago-d179faefd1d663347fb1a332b3c15bb9cf373955.tar.bz2
anodyne-archipelago-d179faefd1d663347fb1a332b3c15bb9cf373955.zip
Fixed cards after 20 not collecting
Diffstat (limited to 'AnodyneArchipelago')
-rw-r--r--AnodyneArchipelago/ArchipelagoManager.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/AnodyneArchipelago/ArchipelagoManager.cs b/AnodyneArchipelago/ArchipelagoManager.cs index 8ee5584..0ca2e6a 100644 --- a/AnodyneArchipelago/ArchipelagoManager.cs +++ b/AnodyneArchipelago/ArchipelagoManager.cs
@@ -216,7 +216,13 @@ namespace AnodyneArchipelago
216 } 216 }
217 else if (itemName == "Card") 217 else if (itemName == "Card")
218 { 218 {
219 CardTreasure cardTreasure = new(Plugin.Player.Position, GlobalState.inventory.CardCount); 219 int cardIndex = GlobalState.inventory.CardCount;
220 if (cardIndex >= 19)
221 {
222 cardIndex += 1;
223 }
224
225 CardTreasure cardTreasure = new(Plugin.Player.Position, cardIndex);
220 cardTreasure.GetTreasure(); 226 cardTreasure.GetTreasure();
221 GlobalState.SpawnEntity(cardTreasure); 227 GlobalState.SpawnEntity(cardTreasure);
222 } 228 }