Skip to content
Browse files

- add string replacements for healing surge value, level, and 1/2 level.

  • Loading branch information...
1 parent e0b2dda commit f1884c6ecb720946c3c9a2583d3516eed93d9e6b @duaiwe committed Sep 11, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 includes/models/Power.php
View
12 includes/models/Power.php
@@ -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;
}

0 comments on commit f1884c6

Please sign in to comment.
Something went wrong with that request. Please try again.