Code: Select all
defineObject{
name = "Tome_health",
baseObject = "base_item",
components = {
{
class = "Model",
model = "assets/models/items/tome.fbx",
},
{
class = "Item",
uiName = "Tome of Healths",
description = "A thick tome that thoroughly describes the diet and excercises of the hermits of Basabua.",
gfxIndex = 30,
weight = 1.0,
gameEffect = "Health +100","Energy -25",
traits = { "tome" },
},
{
class = "UsableItem",
sound = "level_up",
onUseItem = function(self, champion)
hudPrint(champion:getName().." gained Health +100.")
champion:modifyBaseStat("max_health", 100,"max_energy", -25)
champion:modifyBaseStat("health", 100, "energy", -25)
return true
end,
},
},
}
So should I change it to:
Code: Select all
champion:modifyBaseStat("max_health", 100)
champion:modifyBaseStat("max_energy", -25)
champion:modifyBaseStat("health", 100)
champion:modifyBaseStat("energy",-25)
Also when I put in the negative sign in the modifyBaseStat it shows up as black vs the blue which is the number.