From acb882b9242cf31bffd57e6858577e11e20abf72 Mon Sep 17 00:00:00 2001 From: kittenchilly Date: Mon, 25 Apr 2022 13:43:24 -0500 Subject: [PATCH] use enums for max pill and card id as well --- eid_api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index db891189..d03bf1da 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -22,8 +22,8 @@ end -------------------------Handle API Functions ----------------------------- local nullVector = Vector(0,0) local game = Game() -local maxCardID = REPENTANCE and 97 or 54 -local maxPillID = REPENTANCE and 14 or 13 +local maxCardID = Card.NUM_CARDS - 1 +local maxPillID = PillColor.NUM_PILLS - 1 local dynamicSpriteCache = {} -- used to store sprite objects of collectible icons etc. -- Adds a description for a collectible. Optional parameters: itemName, language