Commit 4ef96562503c1487d0cc2271bb1ce8d07ce93971

Authored by DarkGod
1 parent 136a2c6e

Buffed Dwarves (Resiliense gives hardiness, Stoneskin and Power is Money give higher numbers)

@@ -428,6 +428,7 @@ newTalent{ @@ -428,6 +428,7 @@ newTalent{
428 getParams = function(self, t) 428 getParams = function(self, t)
429 return { 429 return {
430 armor = self:combatStatScale("con", 7, 25), 430 armor = self:combatStatScale("con", 7, 25),
  431 + armor_hardiness = self:combatTalentLimit(t, 40, 20, 35),
431 physical = self:combatStatScale("con", 12, 30, 0.75), 432 physical = self:combatStatScale("con", 12, 30, 0.75),
432 spell = self:combatStatScale("con", 12, 30, 0.75), 433 spell = self:combatStatScale("con", 12, 30, 0.75),
433 } 434 }
@@ -439,9 +440,9 @@ newTalent{ @@ -439,9 +440,9 @@ newTalent{
439 end, 440 end,
440 info = function(self, t) 441 info = function(self, t)
441 local params = t.getParams(self, t) 442 local params = t.getParams(self, t)
442 - return ([[Call upon the legendary resilience of the Dwarven race to increase your Armor (+%d), Spell (+%d) and Physical (+%d) saves for 8 turns. 443 + return ([[Call upon the legendary resilience of the Dwarven race to increase your armour (+%d), armour hardiness (+%d%%), spell (+%d) and physical (+%d) saves for 8 turns.
443 The bonus will increase with your Constitution.]]): 444 The bonus will increase with your Constitution.]]):
444 - format(params.armor, params.physical, params.spell) 445 + format(params.armor, params.armor_hardiness, params.physical, params.spell)
445 end, 446 end,
446 } 447 }
447 448
@@ -451,13 +452,13 @@ newTalent{ @@ -451,13 +452,13 @@ newTalent{
451 require = racial_req2, 452 require = racial_req2,
452 points = 5, 453 points = 5,
453 mode = "passive", 454 mode = "passive",
454 - armor = function(self, t) return self:combatTalentScale(t, 6, 30) end, 455 + armor = function(self, t) return self:combatTalentScale(t, 6, 40) end,
455 passives = function(self, t, p) 456 passives = function(self, t, p)
456 self:talentTemporaryValue(p, "auto_stoneskin", t.armor(self, t)) 457 self:talentTemporaryValue(p, "auto_stoneskin", t.armor(self, t))
457 end, 458 end,
458 info = function(self, t) 459 info = function(self, t)
459 return ([[Dwarf skin is a complex structure, it can automatically react to physical blows to harden itself. 460 return ([[Dwarf skin is a complex structure, it can automatically react to physical blows to harden itself.
460 - When you are hit in melee, you have a 15%% chance to increase your Armour total by %d for 5 turns.]]): 461 + When you are hit in melee, you have a 15%% chance to increase your armour total by %d for 5 turns.]]):
461 format(t.armor(self, t)) 462 format(t.armor(self, t))
462 end, 463 end,
463 } 464 }
@@ -468,7 +469,7 @@ newTalent{ @@ -468,7 +469,7 @@ newTalent{
468 require = racial_req3, 469 require = racial_req3,
469 points = 5, 470 points = 5,
470 mode = "passive", 471 mode = "passive",
471 - getMaxSaves = function(self, t) return self:combatTalentScale(t, 8, 35) end, 472 + getMaxSaves = function(self, t) return self:combatTalentScale(t, 8, 50) end,
472 getGold = function(self, t) return self:combatTalentLimit(t, 40, 85, 65) end, -- Limit > 40 473 getGold = function(self, t) return self:combatTalentLimit(t, 40, 85, 65) end, -- Limit > 40
473 -- called by _M:combatPhysicalResist, _M:combatSpellResist, _M:combatMentalResist in mod.class.interface.Combat.lua 474 -- called by _M:combatPhysicalResist, _M:combatSpellResist, _M:combatMentalResist in mod.class.interface.Combat.lua
474 getSaves = function(self, t) 475 getSaves = function(self, t)
@@ -653,28 +653,6 @@ newEffect{ @@ -653,28 +653,6 @@ newEffect{
653 } 653 }
654 654
655 newEffect{ 655 newEffect{
656 - name = "DWARVEN_RESILIENCE", image = "talents/dwarf_resilience.png",  
657 - desc = "Dwarven Resilience",  
658 - long_desc = function(self, eff) return ("The target's skin turns to stone, granting %d armour, %d physical save and %d spell save."):format(eff.armor, eff.physical, eff.spell) end,  
659 - type = "physical",  
660 - subtype = { earth=true },  
661 - status = "beneficial",  
662 - parameters = { armor=10, spell=10, physical=10 },  
663 - on_gain = function(self, err) return "#Target#'s skin turns to stone." end,  
664 - on_lose = function(self, err) return "#Target#'s skin returns to normal." end,  
665 - activate = function(self, eff)  
666 - eff.aid = self:addTemporaryValue("combat_armor", eff.armor)  
667 - eff.pid = self:addTemporaryValue("combat_physresist", eff.physical)  
668 - eff.sid = self:addTemporaryValue("combat_spellresist", eff.spell)  
669 - end,  
670 - deactivate = function(self, eff)  
671 - self:removeTemporaryValue("combat_armor", eff.aid)  
672 - self:removeTemporaryValue("combat_physresist", eff.pid)  
673 - self:removeTemporaryValue("combat_spellresist", eff.sid)  
674 - end,  
675 -}  
676 -  
677 -newEffect{  
678 name = "STONE_SKIN", image = "talents/stoneskin.png", 656 name = "STONE_SKIN", image = "talents/stoneskin.png",
679 desc = "Stoneskin", 657 desc = "Stoneskin",
680 long_desc = function(self, eff) return ("The target's skin reacts to damage, granting %d armour."):format(eff.power) end, 658 long_desc = function(self, eff) return ("The target's skin reacts to damage, granting %d armour."):format(eff.power) end,
@@ -3447,6 +3425,7 @@ newEffect{ @@ -3447,6 +3425,7 @@ newEffect{
3447 on_lose = function(self, err) return "#Target#'s skin returns to normal." end, 3425 on_lose = function(self, err) return "#Target#'s skin returns to normal." end,
3448 activate = function(self, eff) 3426 activate = function(self, eff)
3449 eff.aid = self:addTemporaryValue("combat_armor", eff.armor) 3427 eff.aid = self:addTemporaryValue("combat_armor", eff.armor)
  3428 + eff.hid = self:addTemporaryValue("combat_armor_hardiness", eff.armor_hardiness)
3450 eff.pid = self:addTemporaryValue("combat_physresist", eff.physical) 3429 eff.pid = self:addTemporaryValue("combat_physresist", eff.physical)
3451 eff.sid = self:addTemporaryValue("combat_spellresist", eff.spell) 3430 eff.sid = self:addTemporaryValue("combat_spellresist", eff.spell)
3452 if self:knowTalent(self.T_STONE_FORTRESS) then 3431 if self:knowTalent(self.T_STONE_FORTRESS) then
@@ -3457,6 +3436,7 @@ newEffect{ @@ -3457,6 +3436,7 @@ newEffect{
3457 end, 3436 end,
3458 deactivate = function(self, eff) 3437 deactivate = function(self, eff)
3459 self:removeTemporaryValue("combat_armor", eff.aid) 3438 self:removeTemporaryValue("combat_armor", eff.aid)
  3439 + self:removeTemporaryValue("combat_armor_hardiness", eff.hid)
3460 self:removeTemporaryValue("combat_physresist", eff.pid) 3440 self:removeTemporaryValue("combat_physresist", eff.pid)
3461 self:removeTemporaryValue("combat_spellresist", eff.sid) 3441 self:removeTemporaryValue("combat_spellresist", eff.sid)
3462 if eff.mid then self:removeTemporaryValue("flat_damage_armor", eff.mid) end 3442 if eff.mid then self:removeTemporaryValue("flat_damage_armor", eff.mid) end