diff options
Diffstat (limited to 'AnodyneArchipelago')
-rw-r--r-- | AnodyneArchipelago/ArchipelagoManager.cs | 8 |
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 | } |