removing the naming confusion between elven horse and unicorn in the source

This commit is contained in:
Enno Rehling 2007-10-12 22:14:01 +00:00
parent 02fec778b9
commit a79d40a91f
5 changed files with 33 additions and 33 deletions

View File

@ -2920,13 +2920,13 @@ age_building(building * b)
int n, unicorns = 0; int n, unicorns = 0;
for (n=0; n!=u->number; ++n) { for (n=0; n!=u->number; ++n) {
if (chance(0.02)) { if (chance(0.02)) {
i_change(&u->items, olditemtype[I_UNICORN], 1); i_change(&u->items, olditemtype[I_ELVENHORSE], 1);
++unicorns; ++unicorns;
} }
if (unicorns) { if (unicorns) {
ADDMSG(&u->faction->msgs, msg_message("scunicorn", ADDMSG(&u->faction->msgs, msg_message("scunicorn",
"unit amount rtype", u, unicorns, "unit amount rtype", u, unicorns,
olditemtype[I_UNICORN]->rtype)); olditemtype[I_ELVENHORSE]->rtype));
} }
} }
} }

View File

@ -2110,7 +2110,7 @@ fleechance(unit * u)
c += (eff_skill(u, SK_STEALTH, r) * 0.05); c += (eff_skill(u, SK_STEALTH, r) * 0.05);
if (get_item(u, I_UNICORN) >= u->number && eff_skill(u, SK_RIDING, r) >= 5) if (get_item(u, I_ELVENHORSE) >= u->number && eff_skill(u, SK_RIDING, r) >= 5)
c += 0.30; c += 0.30;
else if (get_item(u, I_HORSE) >= u->number && eff_skill(u, SK_RIDING, r) >= 1) else if (get_item(u, I_HORSE) >= u->number && eff_skill(u, SK_RIDING, r) >= 1)
c += 0.10; c += 0.10;
@ -3061,7 +3061,7 @@ make_fighter(battle * b, unit * u, side * s1, boolean attack)
fig->elvenhorses = 0; fig->elvenhorses = 0;
} else { } else {
fig->horses = get_item(u, I_HORSE); fig->horses = get_item(u, I_HORSE);
fig->elvenhorses = get_item(u, I_UNICORN); fig->elvenhorses = get_item(u, I_ELVENHORSE);
} }
if (u->race->battle_flags & BF_EQUIPMENT) { if (u->race->battle_flags & BF_EQUIPMENT) {

View File

@ -267,7 +267,7 @@ enum {
I_FEENSTIEFEL, I_FEENSTIEFEL,
I_BIRTHDAYAMULET, I_BIRTHDAYAMULET,
I_PEGASUS, I_PEGASUS,
I_UNICORN, I_ELVENHORSE,
I_DOLPHIN, I_DOLPHIN,
I_RING_OF_NIMBLEFINGER, I_RING_OF_NIMBLEFINGER,
I_TROLLBELT, I_TROLLBELT,

View File

@ -1097,7 +1097,7 @@ magic_resistance(unit *target)
} }
/* Unicorn +10 */ /* Unicorn +10 */
n = get_item(target, I_UNICORN); n = get_item(target, I_ELVENHORSE);
if (n) probability += n*0.1/target->number; if (n) probability += n*0.1/target->number;
/* Auswirkungen von Zaubern auf der Region */ /* Auswirkungen von Zaubern auf der Region */

View File

@ -421,7 +421,7 @@ canride(unit * u)
int pferde, maxpferde, unicorns, maxunicorns; int pferde, maxpferde, unicorns, maxunicorns;
int skill = effskill(u, SK_RIDING); int skill = effskill(u, SK_RIDING);
unicorns = get_item(u, I_UNICORN); unicorns = get_item(u, I_ELVENHORSE);
pferde = get_item(u, I_HORSE); pferde = get_item(u, I_HORSE);
maxunicorns = (skill/5) * u->number; maxunicorns = (skill/5) * u->number;
maxpferde = skill * u->number * 2; maxpferde = skill * u->number * 2;
@ -1412,7 +1412,7 @@ travel_route(unit * u, region_list * route_begin, region_list * route_end, order
if (fval(current->terrain, SEA_REGION) || fval(next->terrain, SEA_REGION)) { if (fval(current->terrain, SEA_REGION) || fval(next->terrain, SEA_REGION)) {
/* trying to enter or exit ocean with horses, are we? */ /* trying to enter or exit ocean with horses, are we? */
if (get_item(u, I_HORSE) > 0 || get_item(u, I_UNICORN) > 0) { if (get_item(u, I_HORSE) > 0 || get_item(u, I_ELVENHORSE) > 0) {
/* tries to do it with horses */ /* tries to do it with horses */
if (ord!=NULL) cmistake(u, ord, 67, MSG_MOVE); if (ord!=NULL) cmistake(u, ord, 67, MSG_MOVE);
break; break;