Skip to content
Snippets Groups Projects
Commit 6bb271be authored by DarkGod's avatar DarkGod
Browse files

New static method Object:descCombat() to let addons pass a custom combat table...

New static method Object:descCombat() to let addons pass a custom combat table and get a correct description
parent 61d500f5
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -4911,7 +4911,7 @@ function _M:preUseTalent(ab, silent, fake)
if cost ~= 0 then
rmin, rmax = self[res_def.getMinFunction](self), self[res_def.getMaxFunction](self)
if res_def.invert_values then
if rmax and self[res_def.getFunction](self) + cost > rmax then -- too much
if not res_def.ignore_max_use and rmax and self[res_def.getFunction](self) + cost > rmax then -- too much
if not silent then game.logPlayer(self, "You have too much %s to use %s.", res_def.name, ab.name) end
self.on_preuse_checking_resources = nil
return false
......
This diff is collapsed.
......@@ -105,7 +105,7 @@ newEntity{ base = "BASE_NPC_SPIDER",
newEntity{ base = "BASE_NPC_SPIDER",
subtype = "shiaak", name = "shiaak venomblade", color=colors.GREEN,
desc = [[A strange looking humanoid, covered in black chitinous skin. He dual wields sinuous daggers and seems bend on plunging them in your body.]],
desc = [[A strange looking humanoid, covered in black chitinous skin. He dual wields sinuous daggers and seems bent on plunging them in your body.]],
resolvers.nice_tile{tall=1},
level_range = {35, nil}, exp_worth = 1,
rarity = 4,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment