remove unarmed damage bonus rule

This commit is contained in:
Enno Rehling 2014-11-11 12:13:44 +01:00
parent ebd115b04a
commit b8306d42f5

View file

@ -132,7 +132,6 @@ static int skill_formula = 0;
#define DAMAGE_CRITICAL (1<<0) #define DAMAGE_CRITICAL (1<<0)
#define DAMAGE_MELEE_BONUS (1<<1) #define DAMAGE_MELEE_BONUS (1<<1)
#define DAMAGE_MISSILE_BONUS (1<<2) #define DAMAGE_MISSILE_BONUS (1<<2)
#define DAMAGE_UNARMED_BONUS (1<<3)
#define DAMAGE_SKILL_BONUS (1<<4) #define DAMAGE_SKILL_BONUS (1<<4)
/** initialize rules from configuration. /** initialize rules from configuration.
*/ */
@ -158,9 +157,6 @@ static void static_rules(void)
if (get_param_int(global.parameters, "rules.combat.missile_bonus", 1)) { if (get_param_int(global.parameters, "rules.combat.missile_bonus", 1)) {
damage_rules |= DAMAGE_MISSILE_BONUS; damage_rules |= DAMAGE_MISSILE_BONUS;
} }
if (get_param_int(global.parameters, "rules.combat.unarmed_bonus", 1)) {
damage_rules |= DAMAGE_UNARMED_BONUS;
}
if (get_param_int(global.parameters, "rules.combat.skill_bonus", 1)) { if (get_param_int(global.parameters, "rules.combat.skill_bonus", 1)) {
damage_rules |= DAMAGE_SKILL_BONUS; damage_rules |= DAMAGE_SKILL_BONUS;
} }
@ -1206,12 +1202,6 @@ terminate(troop dt, troop at, int type, const char *damage, bool missile)
da += af->person[at.index].damage_rear; da += af->person[at.index].damage_rear;
} }
} }
else if (awtype == NULL) {
/* skill bonus for unarmed combat */
if (damage_rules & DAMAGE_UNARMED_BONUS) {
da += effskill(au, SK_WEAPONLESS);
}
}
else { else {
/* melee bonus */ /* melee bonus */
if (damage_rules & DAMAGE_MELEE_BONUS) { if (damage_rules & DAMAGE_MELEE_BONUS) {