forked from github/server
Kleine Korrektur.
This commit is contained in:
parent
ac517da404
commit
b109a1d095
|
@ -758,7 +758,7 @@ sp_shadowcall(fighter * fi, int level, double power, spell * sp)
|
||||||
region *r = b->region;
|
region *r = b->region;
|
||||||
unit *mage = fi->unit;
|
unit *mage = fi->unit;
|
||||||
attrib *a;
|
attrib *a;
|
||||||
double force = get_force(power, 3)/2;
|
int force = (int)(get_force(power, 3)/2);
|
||||||
const race *rc = NULL;
|
const race *rc = NULL;
|
||||||
int num;
|
int num;
|
||||||
unit *u;
|
unit *u;
|
||||||
|
@ -780,7 +780,7 @@ sp_shadowcall(fighter * fi, int level, double power, spell * sp)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
u = createunit(r, mage->faction, (int)force, rc);
|
u = createunit(r, mage->faction, force, rc);
|
||||||
u->status = ST_FIGHT;
|
u->status = ST_FIGHT;
|
||||||
|
|
||||||
set_string(&u->name, racename(mage->faction->locale, u, u->race));
|
set_string(&u->name, racename(mage->faction->locale, u, u->race));
|
||||||
|
@ -810,8 +810,8 @@ sp_wolfhowl(fighter * fi, int level, double power, spell * sp)
|
||||||
region *r = b->region;
|
region *r = b->region;
|
||||||
unit *mage = fi->unit;
|
unit *mage = fi->unit;
|
||||||
attrib *a;
|
attrib *a;
|
||||||
double force = get_force(power, 3)/2;
|
int force = (int)(get_force(power, 3)/2);
|
||||||
unit *u = createunit(r, mage->faction, (int)force, new_race[RC_WOLF]);
|
unit *u = createunit(r, mage->faction, force, new_race[RC_WOLF]);
|
||||||
unused(sp);
|
unused(sp);
|
||||||
|
|
||||||
u->status = ST_FIGHT;
|
u->status = ST_FIGHT;
|
||||||
|
@ -844,11 +844,11 @@ sp_shadowknights(fighter * fi, int level, double power, spell * sp)
|
||||||
region *r = b->region;
|
region *r = b->region;
|
||||||
unit *mage = fi->unit;
|
unit *mage = fi->unit;
|
||||||
attrib *a;
|
attrib *a;
|
||||||
double force = get_force(power, 3);
|
int force = (int)get_force(power, 3);
|
||||||
|
|
||||||
unused(sp);
|
unused(sp);
|
||||||
|
|
||||||
u = createunit(r, mage->faction, (int)force, new_race[RC_SHADOWKNIGHT]);
|
u = createunit(r, mage->faction, force, new_race[RC_SHADOWKNIGHT]);
|
||||||
u->status = ST_FIGHT;
|
u->status = ST_FIGHT;
|
||||||
|
|
||||||
set_string(&u->name, "Schattenritter");
|
set_string(&u->name, "Schattenritter");
|
||||||
|
|
|
@ -9,7 +9,7 @@ function write_emails()
|
||||||
|
|
||||||
local faction
|
local faction
|
||||||
for faction in factions() do
|
for faction in factions() do
|
||||||
print(faction.id .. " - " .. faction.locale)
|
-- print(faction.id .. " - " .. faction.locale)
|
||||||
files[faction.locale]:write(faction.email .. "\n")
|
files[faction.locale]:write(faction.email .. "\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue