forked from github/server
Seeschlange nicht getarnt Unterschiede zwischen eff_stealth und effstealth behoben.
This commit is contained in:
parent
f8da577254
commit
9bfa55d584
|
@ -849,28 +849,13 @@ effskill(const unit * u, skill_t sk)
|
|||
}
|
||||
|
||||
int
|
||||
effstealth(const unit * u)
|
||||
eff_stealth(const unit * u, const region * r)
|
||||
{
|
||||
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)
|
||||
{
|
||||
int e;
|
||||
|
||||
if (r->terrain == T_OCEAN) return 0;
|
||||
e = eff_skill (u, SK_STEALTH, r);
|
||||
|
||||
if (fval(u, UFL_STEALTH)) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue