Get total ATTACK token @param pc @param at @return total ATTACK token
(PlayerCharacter pc, AttackType at)
| 74 | * @return total ATTACK token |
| 75 | */ |
| 76 | public static int getTotalToken(PlayerCharacter pc, AttackType at) |
| 77 | { |
| 78 | final int tohitBonus = |
| 79 | (int) pc.getTotalBonusTo("TOHIT", "TOHIT") + (int) pc.getTotalBonusTo("TOHIT", "TYPE." + at); |
| 80 | final int totalBonus = |
| 81 | (int) pc.getTotalBonusTo("COMBAT", "TOHIT") + (int) pc.getTotalBonusTo("COMBAT", "TOHIT." + at); |
| 82 | return tohitBonus + totalBonus; |
| 83 | } |
| 84 | |
| 85 | public static String getSubToken(PlayerCharacter pc, AttackType attackType, String modifier) |
| 86 | { |
no test coverage detected