dumpfbackenbrot:

- bugfix abzug nach anwendung
This commit is contained in:
Enno Rehling 2004-02-22 16:08:39 +00:00
parent 66c4a520d3
commit 14d49937fc
5 changed files with 25 additions and 37 deletions

View File

@ -306,6 +306,7 @@ live(region * r)
ADDMSG(&u->faction->msgs, msg_message("dumbeffect", ADDMSG(&u->faction->msgs, msg_message("dumbeffect",
"unit weeks skill", u, weeks, (skill_t)sb->id)); "unit weeks skill", u, weeks, (skill_t)sb->id));
} /* sonst Glück gehabt: wer nix weiß, kann nix vergessen... */ } /* sonst Glück gehabt: wer nix weiß, kann nix vergessen... */
change_effect(u, oldpotiontype[P_FOOL], -effect);
} }
} }
age_unit(r, u); age_unit(r, u);

View File

@ -2831,6 +2831,7 @@ make_fighter(battle * b, unit * u, side * s1, boolean attack)
/* Effekte von Alchemie */ /* Effekte von Alchemie */
berserk = get_effect(u, oldpotiontype[P_BERSERK]); berserk = get_effect(u, oldpotiontype[P_BERSERK]);
/* change_effect wird in ageing gemacht */
/* Effekte von Artefakten */ /* Effekte von Artefakten */
strongmen = min(fig->unit->number, get_item(u, I_TROLLBELT)); strongmen = min(fig->unit->number, get_item(u, I_TROLLBELT));

View File

@ -1779,10 +1779,9 @@ verify_targets(castorder *co)
spobj->data.i = u->no; spobj->data.i = u->no;
spobj->flag = TARGET_RESISTS; spobj->flag = TARGET_RESISTS;
resists++; resists++;
add_message(&mage->faction->msgs, new_message(mage->faction, ADDMSG(&mage->faction->msgs, msg_message("spellunitresists",
"spellunitresists%u:unit%r:region%s:command%d:id", "unit region command target",
mage, mage->region, strdup(co->order), mage, mage->region, strdup(co->order), u));
spobj->data.i));
break; break;
} }

View File

@ -254,6 +254,7 @@ walkingcapacity(unit * u)
n += personen * personcapacity(u); n += personen * personcapacity(u);
/* Goliathwasser */ /* Goliathwasser */
n += get_effect(u, oldpotiontype[P_STRONG]) * personcapacity(u); n += get_effect(u, oldpotiontype[P_STRONG]) * personcapacity(u);
/* change_effect wird in ageing gemacht */
n += min(get_item(u, I_TROLLBELT), u->number) * STRENGTHCAPACITY; n += min(get_item(u, I_TROLLBELT), u->number) * STRENGTHCAPACITY;
return n; return n;
@ -606,21 +607,6 @@ drifting_ships(region * r)
} }
} }
char *
coords_or_direction(region *r, faction *f, int dir)
{
static char lbuf[32];
plane *pl = getplane(r);
if(fval(pl, PFL_NOCOORDS)) {
strcpy(lbuf, locale_string(f->locale, directions[dir]));
} else {
sprintf(lbuf, "(%d,%d)",region_x(r,f), region_y(r,f));
}
return lbuf;
}
static void static void
ship_in_storm(unit *cap, region *next_point) ship_in_storm(unit *cap, region *next_point)
{ {
@ -2055,26 +2041,27 @@ destroy_damaged_ships(void)
} }
} }
boolean #ifdef TODO /* Wenn Feature ausgearbeitet */
static boolean
is_disorientated(unit *u) is_disorientated(unit *u)
{ {
static boolean init = false; static boolean init = false;
static const curse_type * shipconf_ct, * regconf_ct; static const curse_type * shipconf_ct, * regconf_ct;
if (!init) { if (!init) {
init = true; init = true;
regconf_ct = ct_find("disorientationzone"); regconf_ct = ct_find("disorientationzone");
shipconf_ct = ct_find("shipdisorientation"); shipconf_ct = ct_find("shipdisorientation");
} }
if (u->ship && curse_active(get_curse(u->ship->attribs, shipconf_ct))) if (u->ship && curse_active(get_curse(u->ship->attribs, shipconf_ct)))
return true; return true;
if (curse_active(get_curse(u->region->attribs, regconf_ct))) if (curse_active(get_curse(u->region->attribs, regconf_ct)))
return true; return true;
return false; return false;
} }
#ifdef TODO /* Wenn Feature ausgearbeitet */
void void
regain_orientation(region * r) regain_orientation(region * r)
{ {

View File

@ -1212,11 +1212,11 @@
<arg name="unit" type="unit"></arg> <arg name="unit" type="unit"></arg>
<arg name="region" type="region"></arg> <arg name="region" type="region"></arg>
<arg name="command" type="string"></arg> <arg name="command" type="string"></arg>
<arg name="id" type="int"></arg> <arg name="target" type="unit"></arg>
</type> </type>
<text locale="de">"$unit($unit) in $region($region): '$command' - Einheit $int36($id) widersteht dem Zauber."</text> <text locale="de">"$unit($unit) in $region($region): '$command' - $unit($target) widersteht dem Zauber."</text>
<text locale="fr">"$unit($unit) in $region($region): '$command' - unit $int36($id) resists the spell."</text> <text locale="fr">"$unit($unit) in $region($region): '$command' - $unit($target) resists the spell."</text>
<text locale="en">"$unit($unit) in $region($region): '$command' - unit $int36($id) resists the spell."</text> <text locale="en">"$unit($unit) in $region($region): '$command' - $unit($target) resists the spell."</text>
</message> </message>
<message name="spellshipnotfound" section="magic"> <message name="spellshipnotfound" section="magic">
<type> <type>