/* ....[@@@..[@@@..............[@.................. MUD++ is a written from ....[@..[@..[@..[@..[@..[@@@@@....[@......[@.... scratch multi-user swords and ....[@..[@..[@..[@..[@..[@..[@..[@@@@@..[@@@@@.. sorcery game written in C++. ....[@......[@..[@..[@..[@..[@....[@......[@.... This server is an ongoing ....[@......[@..[@@@@@..[@@@@@.................. development project. All ................................................ contributions are welcome. ....Copyright(C).1995.Melvin.Smith.............. Enjoy. ------------------------------------------------------------------------------ Melvin Smith (aka Fusion) msmith@hom.net MUD++ development mailing list mudpp@van.ml.org ------------------------------------------------------------------------------ combat.cc */ #include "config.h" #include "bit.h" #include "combat.h" const char * getDamRangeName( int dam, bool passive ) { int i = ( passive ? 1 : 0 ); // temporary until damage range for combat is finalized. if( dam < 100 ) dam = dam / 20; else dam = 6; static char *messg[ DAM_RANGES ][2] = { { "scratch", "scratches" }, { "graze", "grazes" }, { "hit", "hits" }, { "wound", "wounds" }, { "devastate", "devastates" }, { "DEMOLISH", "DEMOLISHES" }, { "DESTROY", "DESTROYS" } }; return messg[ dam ][ i ]; }