mud++0.35/etc/
mud++0.35/etc/guilds/
mud++0.35/help/propert/
mud++0.35/mudC/
mud++0.35/player/
mud++0.35/src/interface/
mud++0.35/src/os/cygwin32/
mud++0.35/src/os/win32/
mud++0.35/src/os/win32/bcppbuilder/
mud++0.35/src/osaddon/
mud++0.35/src/util/
/*
....[@@@..[@@@..............[@.................. 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 ];
}