Seeschlange nicht getarnt

Unterschiede zwischen eff_stealth und effstealth behoben.
This commit is contained in:
Enno Rehling 2005-07-10 22:27:55 +00:00
parent f8da577254
commit 9bfa55d584
2 changed files with 5 additions and 21 deletions

View File

@ -849,29 +849,14 @@ effskill(const unit * u, skill_t sk)
}
int
effstealth(const unit * u)
{
int e;
/* Auf Schiffen keine Tarnung! */
if (u->ship) return 0;
e = effskill(u, SK_STEALTH);
if (fval(u, UFL_STEALTH)) {
int es = u_geteffstealth(u);
if (es >=0 && es < e) return es;
}
return e;
}
int
eff_stealth (const unit * u, const region * r)
eff_stealth(const unit * u, const region * r)
{
int e;
if (r->terrain == T_OCEAN) return 0;
e = eff_skill (u, SK_STEALTH, r);
/* Auf Schiffen keine Tarnung! */
if (u->ship) return 0;
e = eff_skill (u, SK_STEALTH, r);
if (fval(u, UFL_STEALTH)) {
int es = u_geteffstealth(u);

View File

@ -1018,7 +1018,6 @@ extern int count_maxmigrants(const struct faction * f);
extern boolean teure_talente(const struct unit * u);
extern const struct race * findrace(const char *, const struct locale *);
int effstealth(const struct unit * u);
int eff_stealth(const struct unit * u, const struct region * r);
void scale_number(struct unit * u, int n);
int unit_max_hp(const struct unit * u);