From 1f3413a9b47ee26f31769b9f74ce51f161bc1db7 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 29 Aug 2016 08:55:59 +0100 Subject: [PATCH] annotations --- src/battle.c | 4 ---- src/battle.test.c | 1 + src/kernel/building.h | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/battle.c b/src/battle.c index 9af7a23d4..c061f1ca5 100644 --- a/src/battle.c +++ b/src/battle.c @@ -1948,10 +1948,6 @@ int skilldiff(troop at, troop dt, int dist) } } } - /* Goblin-Verteidigung - * ist direkt in der Rassentabelle als df_default - */ - /* Effekte der Waffen */ skdiff += weapon_effskill(at, dt, awp, true, dist > 1); if (awp && fval(awp->type, WTF_MISSILE)) { diff --git a/src/battle.test.c b/src/battle.test.c index 2ba68bbc9..f44d3985c 100644 --- a/src/battle.test.c +++ b/src/battle.test.c @@ -432,6 +432,7 @@ static void test_battle_skilldiff(CuTest *tc) // TODO: unarmed halfling vs. dragon: +5 // TODO: rule_goblin_bonus + // TODO: weapon modifiers, missiles, skill_formula free_battle(b); test_cleanup(); diff --git a/src/kernel/building.h b/src/kernel/building.h index c2dcb6dea..020de077b 100644 --- a/src/kernel/building.h +++ b/src/kernel/building.h @@ -53,7 +53,7 @@ extern "C" { typedef enum { DEFENSE_BONUS, - CLOSE_COMBAT_ATTACK_BONUS, + CLOSE_COMBAT_ATTACK_BONUS, // TODO: only DEFENSE_BONUS is in use? RANGED_ATTACK_BONUS, } building_bonus;