forked from github/server
Make the worst-case number of Golems look better.
This commit is contained in:
parent
a33ac3b402
commit
c3e86ff6da
|
@ -1484,8 +1484,7 @@ static int sp_create_irongolem(castorder * co)
|
||||||
region *r = co_get_region(co);
|
region *r = co_get_region(co);
|
||||||
unit *caster = co_get_caster(co);
|
unit *caster = co_get_caster(co);
|
||||||
int cast_level = co->level;
|
int cast_level = co->level;
|
||||||
double force = co->force;
|
int number = (int)((co->force * 4 + lovar(co->force * 4)) * RESOURCE_QUANTITY);
|
||||||
int number = lovar(force * 8 * RESOURCE_QUANTITY);
|
|
||||||
static int cache;
|
static int cache;
|
||||||
static const race * golem_rc;
|
static const race * golem_rc;
|
||||||
|
|
||||||
|
@ -1554,7 +1553,7 @@ static int sp_create_stonegolem(castorder * co)
|
||||||
region *r = co_get_region(co);
|
region *r = co_get_region(co);
|
||||||
unit *caster = co_get_caster(co);
|
unit *caster = co_get_caster(co);
|
||||||
int cast_level = co->level;
|
int cast_level = co->level;
|
||||||
int number = lovar(co->force * 5 * RESOURCE_QUANTITY);
|
int number = (int)((co->force * 2 + lovar(co->force * 3)) * RESOURCE_QUANTITY);
|
||||||
static int cache;
|
static int cache;
|
||||||
static const race * golem_rc;
|
static const race * golem_rc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue