Skip to content

Commit

Permalink
- add string replacements for healing surge value, level, and 1/2 level.
Browse files Browse the repository at this point in the history
  • Loading branch information
borzilleri committed Sep 11, 2009
1 parent e0b2dda commit f1884c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions includes/models/Power.php
Expand Up @@ -797,6 +797,18 @@ public function getStringReplacement($string, $multiplier = 1) {
$result = $this->Player->implement_damage;
$result = $result * $multiplier;
break;
case 'surge':
$result = $this->Player->surge_value;
$result = $result * $multiplier;
break;
case 'lvl':
$result = $this->Player->level;
$result = $result * $multiplier;
break;
case 'hlvl':
$result = floor($this->Player->level/2);
$result = $result * $multiplier;
break;
}
return $result;
}
Expand Down

0 comments on commit f1884c6

Please sign in to comment.