Helper methods
- Source:
Methods
(static) getGuildRankBonus(r) → {number}
Get the current guild rank's bonus, noting that there is a max of 15 ranks, base zero.
Parameters:
Name | Type | Description |
---|---|---|
r |
Koviko.Predictor~Resources | Accumulated resources |
- Source:
Returns:
Current bonus from guild rank
- Type
- number
(static) getSelfCombat(r, k) → {number}
Calculate the combat skill specifically affecting the team leader
Parameters:
Name | Type | Description |
---|---|---|
r |
Koviko.Predictor~Resources | Accumulated resources |
k |
Koviko.Predictor~Skills | Accumulated skills |
- Source:
Returns:
Combat skill of the team leader
- Type
- number
(static) getTeamCombat(r, k) → {number}
Calculate the combat skill of the entire team
Parameters:
Name | Type | Description |
---|---|---|
r |
Koviko.Predictor~Resources | Accumulated resources |
k |
Koviko.Predictor~Skills | Accumulated skills |
- Source:
Returns:
Combat skill of the team members
- Type
- number
(static) getTownLevelFromExp(exp) → {number}
Get the level of a town attribute.
Parameters:
Name | Type | Description |
---|---|---|
exp |
number | Amount of experience in the town attribute |
- Source:
Returns:
Current level of town attribute
- Type
- number