From 7bdc5704afb558d12db952c67285607f861f42c9 Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Wed, 26 Jan 2011 05:59:45 +0000 Subject: [PATCH] add comment to remind git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6051 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entity.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/entity.h b/source/src/entity.h index 52504334..2c54fde3 100644 --- a/source/src/entity.h +++ b/source/src/entity.h @@ -353,7 +353,8 @@ public: return damage; } - /* 4-level armor - sectioned approach: 16%, 33%, 37%, 41% */ + // 4-level armour - tiered approach: 16%, 33%, 37%, 41% + // Please update ./ac_website/htdocs/docs/introduction.html if this changes. int armoursection = 0; int ad = damage; if(armour > 25) armoursection = 1; @@ -361,7 +362,7 @@ public: if(armour > 75) armoursection = 3; switch(armoursection) { - case 0: ad = (int) (16.0f/25.0f * armour); break; // 16 + case 0: ad = (int) (16.0f/25.0f * armour); break; // 16 case 1: ad = (int) (17.0f/25.0f * armour) - 1; break; // 33 case 2: ad = (int) (4.0f/25.0f * armour) + 25; break; // 37 case 3: ad = (int) (4.0f/25.0f * armour) + 25; break; // 41