Commit b11d7b236e3f0655c1a1e84a88728bcff5aab63a

Authored by DarkGod
2 parents f6b0b4cf 51f619c8

Merge branch 'update-counterstrike-desc' into 'master'

Update the description of Counterstrike to show the value of the Defense reduction.

Also: Adds that a ranged weapon attack will also deal double damage. Adds a default power parameter as a failsafe for the desc. 

See merge request !773
... ... @@ -2420,11 +2420,11 @@ newEffect{
2420 2420 newEffect{
2421 2421 name = "COUNTERSTRIKE", image = "effects/counterstrike.png",
2422 2422 desc = _t"Counterstrike",
2423   - long_desc = function(self, eff) return _t"Vulnerable to deadly counterstrikes. Next melee attack will inflict double damage." end,
  2423 + long_desc = function(self, eff) return ("Vulnerable to deadly counterstrikes. Next melee or ranged weapon attack will inflict double damage. Defense is reduced by %d."):tformat(eff.power) end,
2424 2424 type = "physical",
2425 2425 subtype = { tactic=true },
2426 2426 status = "detrimental",
2427   - parameters = { nb=1 },
  2427 + parameters = { nb=1, power = 5 },
2428 2428 on_gain = function(self, eff) return nil, _t"+Counter" end,
2429 2429 on_lose = function(self, eff) return nil, _t"-Counter" end,
2430 2430 onStrike = function(self, eff, dam, src)
... ...