}
if (Animation::animations[victim->animTarget].height != lowheight) {
- float damagemult = (creature == wolftype ? 2.5 : 1.) * power * power;
+ float damagemult = PersonType::types[creature].power * power * power;
XYZ relative = velocity;
relative.y = 0;
Normalise(&relative);
}
//Move impacts
- float damagemult = 1 * power;
- if (creature == wolftype) {
- damagemult = 2.5 * power;
- }
+ float damagemult = PersonType::types[creature].power * power;
if (hasvictim) {
damagemult /= victim->damagetolerance / 200;
}
types[wolftype].skins[1] = "Textures/FurWolfDark.jpg";
types[wolftype].skins[2] = "Textures/FurWolfSnow.jpg";
+ types[wolftype].power = 2.5;
+
/* Rabbit */
types[rabbittype].proportions[0] = 1.2;
types[rabbittype].proportions[1] = 1.05;
types[rabbittype].skins[7] = "Textures/FurChocolate.jpg";
types[rabbittype].skins[8] = "Textures/FurBlackWhite.jpg";
types[rabbittype].skins[9] = "Textures/FurBrownWhite.jpg";
+
+ types[rabbittype].power = 1;
}
std::vector<std::string> skins;
+ float power;
+
GLubyte bloodText[512 * 512 * 3] = { 0 };
PersonType();