|
@@ -1,12 +1,10 @@
|
|
|
# Bonus Updaters
|
|
|
|
|
|
-TODO: this page may be incorrect or outdated
|
|
|
-
|
|
|
Updaters come in two forms: simple and complex. Simple updaters take no
|
|
|
parameters and are specified as strings. Complex updaters do take
|
|
|
parameters (sometimes optional), and are specified as structs.
|
|
|
|
|
|
-Check the files in *config/heroes/* for additional usage examples.
|
|
|
+Check the files in `config/heroes/` for additional usage examples.
|
|
|
|
|
|
## GROWS_WITH_LEVEL
|
|
|
|
|
@@ -14,8 +12,7 @@ Check the files in *config/heroes/* for additional usage examples.
|
|
|
- Parameters: valPer20, stepSize=1
|
|
|
- Effect: Updates val to `ceil(valPer20 * floor(heroLevel / stepSize) / 20)`
|
|
|
|
|
|
-Example: The following updater will cause a bonus to grow by 6 for every
|
|
|
-40 levels. At first level, rounding will cause the bonus to be 0.
|
|
|
+Example: The following updater will cause a bonus to grow by 6 for every 40 levels. At first level, rounding will cause the bonus to be 0.
|
|
|
|
|
|
```json
|
|
|
"updater" : {
|
|
@@ -24,8 +21,7 @@ Example: The following updater will cause a bonus to grow by 6 for every
|
|
|
}
|
|
|
```
|
|
|
|
|
|
-Example: The following updater will cause a bonus to grow by 3 for every
|
|
|
-20 levels. At first level, rounding will cause the bonus to be 1.
|
|
|
+Example: The following updater will cause a bonus to grow by 3 for every 20 levels. At first level, rounding will cause the bonus to be 1.
|
|
|
|
|
|
```json
|
|
|
"updater" : {
|
|
@@ -36,10 +32,8 @@ Example: The following updater will cause a bonus to grow by 3 for every
|
|
|
|
|
|
Remarks:
|
|
|
|
|
|
-- The rounding rules are designed to match the attack/defense bonus
|
|
|
- progression for heroes with creature specialties in HMM3.
|
|
|
-- There is no point in specifying val for a bonus with a
|
|
|
- GROWS_WITH_LEVEL updater.
|
|
|
+- The rounding rules are designed to match the attack/defense bonus progression for heroes with creature specialties in HMM3.
|
|
|
+- There is no point in specifying val for a bonus with a GROWS_WITH_LEVEL updater.
|
|
|
|
|
|
## TIMES_HERO_LEVEL
|
|
|
|
|
@@ -48,14 +42,10 @@ Remarks:
|
|
|
|
|
|
Usage: `"updater" : "TIMES_HERO_LEVEL"`
|
|
|
|
|
|
-Remark: This updater is redundant, in the sense that GROWS_WITH_LEVEL
|
|
|
-can also express the desired scaling by setting valPer20 to 20\*val. It
|
|
|
-has been added for convenience.
|
|
|
-
|
|
|
## TIMES_STACK_LEVEL
|
|
|
|
|
|
- Type: Simple
|
|
|
-- Effect: Updates val to `val * stackLevel`
|
|
|
+- Effect: Updates val to `val * stackLevel`, where `stackLevel` is level of stack (Pikeman is level 1, Angel is level 7)
|
|
|
|
|
|
Usage:
|
|
|
|
|
@@ -66,7 +56,7 @@ Remark: The stack level for war machines is 0.
|
|
|
## DIVIDE_STACK_LEVEL
|
|
|
|
|
|
- Type: Simple
|
|
|
-- Effect: Updates val to `val / stackLevel`
|
|
|
+- Effect: Updates val to `val / stackLevel`, where `stackLevel` is level of stack (Pikeman is level 1, Angel is level 7)
|
|
|
|
|
|
Usage:
|
|
|
|
|
@@ -87,4 +77,4 @@ Usage:
|
|
|
|
|
|
## BONUS_OWNER_UPDATER
|
|
|
|
|
|
-TODO: document me
|
|
|
+Helper updater for proper functionality of `OPPOSITE_SIDE` limiter
|