From 80748476de36badffe5850706da898b73a720195 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 22 Apr 2021 19:46:19 +0200 Subject: [PATCH] fix: separate equipment pockets --- .../datas/gamedata/items/init.lua | 24 ++++++++++++------- sonic-radiance.love/game/loot/pocket.lua | 1 + 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/sonic-radiance.love/datas/gamedata/items/init.lua b/sonic-radiance.love/datas/gamedata/items/init.lua index cecf8a9..a742be6 100644 --- a/sonic-radiance.love/datas/gamedata/items/init.lua +++ b/sonic-radiance.love/datas/gamedata/items/init.lua @@ -3,49 +3,57 @@ return { name = "medicines", fullname = "Medicines", description = "Healing items", - inBattle = true + inBattle = true, + isEquipement = false, }, [2] = { name = "powerups", fullname = "Powerups", description = "Helping items usable in battle", - inBattle = true + inBattle = true, + isEquipement = false, }, [3] = { name = "wisps", fullname = "Wisps", description = "Little alien creatures that can attack ennemies", - inBattle = true + inBattle = true, + isEquipement = false, }, [4] = { name = "gloves", fullname = "Gloves", description = "All equipables gloves", - inBattle = false + inBattle = false, + isEquipement = true, }, [5] = { name = "shoes", fullname = "Shoes", description = "All equipables shoes", - inBattle = false + inBattle = false, + isEquipement = true, }, [6] = { name = "accessories", fullname = "Accessories", description = "All equipables accessories", - inBattle = false + inBattle = false, + isEquipement = true, }, [7] = { name = "chao", fullname = "Chao's Items", description = "All chao-related items", - inBattle = false + inBattle = false, + isEquipement = false, }, [8] = { name = "quest", fullname = "Quest Items", description = "All quest items", - inBattle = false + inBattle = false, + isEquipement = false, }, } diff --git a/sonic-radiance.love/game/loot/pocket.lua b/sonic-radiance.love/game/loot/pocket.lua index b0be35f..d3f0e5f 100644 --- a/sonic-radiance.love/game/loot/pocket.lua +++ b/sonic-radiance.love/game/loot/pocket.lua @@ -5,6 +5,7 @@ function Pocket:new(pocketdata) self.fullname = pocketdata.fullname self.inBattle = pocketdata.inBattle self.description = pocketdata.description + self.isEquipement = pocketdata.isEquipement self.list = {} end