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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5104 51575b47-30f0-44d4-a5cc-537603b46e54
parent 203d5acc
No related branches found
Tags tome-beta39
No related merge requests found
......@@ -1115,7 +1115,9 @@ function _M:setupCommands()
end end
end end,
[{"_g","ctrl"}] = function() if config.settings.cheat then
for id, _ in pairs(game.party.__ingredients_def) do game.party:collectIngredient(id, rng.range(1, 3)) end
-- for id, _ in pairs(game.party.__ingredients_def) do game.party:collectIngredient(id, rng.range(1, 3)) end
local m = game.zone:makeEntity(game.level, "actor", {random_elite=true}, nil, true)
game.zone:addEntity(game.level, m, "actor", game.player.x,game.player.y-1)
end end,
[{"_f","ctrl"}] = function() if config.settings.cheat then
self.player.quests["love-melinda"] = nil
......
......@@ -535,7 +535,7 @@ function _M:getTextualDesc(compare_with)
compare_fields(combat, compare_with, field, "travel_speed", "%+d%%", "Travel speed: ", 100, false, false, add_table)
compare_fields(combat, compare_with, field, "phase_power", "%+d%%", "Damage Shield penetration (this weapon only): ", 1, false, false, add_table)
compare_fields(combat, compare_with, field, "phasing", "%+d%%", "Damage Shield penetration (this weapon only): ", 1, false, false, add_table)
if combat.tg_type and combat.tg_type == "beam" then
desc:add({"color","YELLOW"}, ("Shots beam through all targets."), {"color","LAST"}, true)
......
......@@ -93,10 +93,16 @@ load("/data/talents/gifts/storm-drake.lua")
function checkMaxSummon(self, silent)
local nb = 0
if not game.party then return end
-- Count party members
for act, def in pairs(game.party.members) do
if act.summoner and act.summoner == self and act.wild_gift_summon then nb = nb + 1 end
if game.party:hasMember(self) then
for act, def in pairs(game.party.members) do
if act.summoner and act.summoner == self and act.wild_gift_summon then nb = nb + 1 end
end
else
for _, act in pairs(game.level.entities) do
if act.summoner and act.summoner == self and act.wild_gift_summon then nb = nb + 1 end
end
end
local max = math.max(1, math.floor(self:getCun() / 10))
......
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