Skip to content
Snippets Groups Projects
Commit c255fb0c authored by dg's avatar dg
Browse files

mooooarr

git-svn-id: http://svn.net-core.org/repos/t-engine4@5582 51575b47-30f0-44d4-a5cc-537603b46e54
parent 17422e40
No related branches found
No related tags found
No related merge requests found
......@@ -1219,6 +1219,7 @@ newDamageType{
local newfeat_name, newfeat, silence = feat.dig, nil, false
if type(feat.dig) == "function" then newfeat_name, newfeat, silence = feat.dig(src, x, y, feat) end
game.level.map(x, y, Map.TERRAIN, newfeat or game.zone.grid_list[newfeat_name])
src.dug_times = (src.dug_times or 0) + 1
game.nicer_tiles:updateAround(game.level, x, y)
if not silence then
game.logSeen({x=x,y=y}, "%s turns into %s.", feat.name:capitalize(), (newfeat or game.zone.grid_list[newfeat_name]).name)
......
......@@ -72,7 +72,7 @@ uberTalent{
uberTalent{
name = "Massive Blow",
mode = "activated",
-- require = { special={desc=".", fct=function(self) return self.size_category and self.size_category >= 5 and knowRessource(self, "stamina", 20) end} },
require = { special={desc="Dug at least 30 walls/trees/... and know at least 20 talent levels of stamina using talents.", fct=function(self) return self.dug_times and self.dug_times >= 30 and knowRessource(self, "stamina", 20) end} },
cooldown = 10,
stamina = 20,
action = function(self, t)
......
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