Commit bde8b5baa48d88d034b25e9144792ab9c61fd457
1 parent
1878f6cc
Random elites of low level ( <12 ) will now have a damage penalty based on their…
… level. Starting at -40% at level 1 to -3% at level 12 git-svn-id: http://svn.net-core.org/repos/t-engine4@5135 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
4 changed files
with
15 additions
and
19 deletions
... | ... | @@ -182,10 +182,12 @@ function _M:event(e) |
182 | 182 | self.channels[e.channel].users = {} |
183 | 183 | for _, user in ipairs(info.users) do |
184 | 184 | self.channels[e.channel].users[user.login] = { |
185 | + id=user.id, | |
185 | 186 | login=user.login, |
186 | 187 | name=user.name, |
187 | 188 | donator=user.donator, |
188 | 189 | status=user.status, |
190 | + current_char_data=user.current_char, | |
189 | 191 | current_char=user.current_char and user.current_char.title or "unknown", |
190 | 192 | module=user.current_char and user.current_char.module or "unknown", |
191 | 193 | valid=user.current_char and user.current_char.valid and "validate" or "not validated", | ... | ... |
... | ... | @@ -1115,22 +1115,7 @@ function _M:setupCommands() |
1115 | 1115 | end end |
1116 | 1116 | end end, |
1117 | 1117 | [{"_g","ctrl"}] = function() if config.settings.cheat then |
1118 | - savefile_pipe:ignoreSaveToken(true) | |
1119 | - local ep = savefile_pipe:doLoad("reaver", "entity", "engine.CharacterBallSave", "reaver") | |
1120 | - savefile_pipe:ignoreSaveToken(false) | |
1121 | - for a, _ in pairs(ep.members) do | |
1122 | - if a.__CLASSNAME == "mod.class.Player" then | |
1123 | - mod.class.NPC.castAs(a) | |
1124 | - engine.interface.ActorAI.init(a, a) | |
1125 | - a.ai = "tactical" | |
1126 | - a.ai_state = {talent_in=1} | |
1127 | - a.no_drops = true | |
1128 | - a.energy.value = 0 | |
1129 | - a.player = nil | |
1130 | - a.faction = "enemies" | |
1131 | - game.zone:addEntity(game.level, a, "actor", game.player.x, game.player.y-1) | |
1132 | - end | |
1133 | - end | |
1118 | + self:registerDialog(require("mod.dialogs.DownloadCharball").new()) | |
1134 | 1119 | end end, |
1135 | 1120 | [{"_f","ctrl"}] = function() if config.settings.cheat then |
1136 | 1121 | self.player.quests["love-melinda"] = nil | ... | ... |
... | ... | @@ -1109,6 +1109,12 @@ function _M:entityFilterPost(zone, level, type, e, filter) |
1109 | 1109 | end, |
1110 | 1110 | level = filter.random_elite.level or zone:level_adjust_level(level, zone, type), |
1111 | 1111 | check_talents_level = true, |
1112 | + post = function(b, data) | |
1113 | + if data.level <= 12 then | |
1114 | + b.inc_damage = b.inc_damage or {} | |
1115 | + b.inc_damage.all = (b.inc_damage.all or 0) - 40 * (12 - data.level + 1) / 12 | |
1116 | + end | |
1117 | + end, | |
1112 | 1118 | } |
1113 | 1119 | e = self:createRandomBoss(e, table.merge(base, filter.random_elite, true)) |
1114 | 1120 | end |
... | ... | @@ -1664,6 +1670,9 @@ function _M:createRandomBoss(base, data) |
1664 | 1670 | self:resetToFull() |
1665 | 1671 | end |
1666 | 1672 | |
1673 | + -- Anything else | |
1674 | + if data.post then data.post(b, data) end | |
1675 | + | |
1667 | 1676 | return b, boss_id |
1668 | 1677 | end |
1669 | 1678 | ... | ... |
... | ... | @@ -18,6 +18,7 @@ |
18 | 18 | -- darkgod@te4.org |
19 | 19 | |
20 | 20 | newTalentType{ type="technique/horror", name = "horror techniques", hide = true, description = "Physical talents of the various horrors of the world." } |
21 | +newTalentType{ type="gift/horror", name = "horror wild gifts", hide = true, description = "Wild gifts talents of the various horrors of the world." } | |
21 | 22 | newTalentType{ no_silence=true, is_spell=true, type="spell/horror", name = "horror spells", hide = true, description = "Spell talents of the various horrors of the world." } |
22 | 23 | newTalentType{ no_silence=true, is_spell=true, type="corruption/horror", name = "horror spells", hide = true, description = "Spell talents of the various horrors of the world." } |
23 | 24 | newTalentType{ type="other/horror", name = "horror powers", hide = true, description = "Unclassified talents of the various horrors of the world." } |
... | ... | @@ -162,7 +163,7 @@ newTalent{ |
162 | 163 | info = function(self, t) |
163 | 164 | local damage = t.getDamage(self, t) * 100 |
164 | 165 | local bleed = t.getBleedDamage(self, t) * 100 |
165 | - return ([[Bites the target for %d%% weapon damage, potentially causing it to bleed for %d%% weapon damage over five turns. | |
166 | + return ([[Bites the target for %d%% weapon damage, potentially causing it to bleed for %d%% weapon damage over five turns. | |
166 | 167 | If the target is affected by the bleed it will send the devourer into a frenzy (which in turn will frenzy nearby devourers).]]):format(damage, bleed) |
167 | 168 | end, |
168 | 169 | } |
... | ... | @@ -276,7 +277,7 @@ newTalent{ |
276 | 277 | info = function(self, t) |
277 | 278 | local duration = t.getDuration(self, t) |
278 | 279 | local chance = t.getChance(self, t) |
279 | - return ([[Brings the target's inner demons to the surface. Each turn for %d turns there's a %d%% chance that one will be summoned. | |
280 | + return ([[Brings the target's inner demons to the surface. Each turn for %d turns there's a %d%% chance that one will be summoned. | |
280 | 281 | If the summoning is resisted the effect will end early.]]):format(duration, chance) |
281 | 282 | end, |
282 | 283 | } |
... | ... | @@ -549,4 +550,3 @@ newTalent{ |
549 | 550 | format(duration, damDesc(self, DamageType.ACID, (damage/2)), damDesc(self, DamageType.BLIGHT, (damage/2)), damDesc(self, DamageType.ACID, (burst))) |
550 | 551 | end, |
551 | 552 | } |
552 | - | ... | ... |
-
Please register or login to post a comment