forked from github/server
prefer dice to dice_rand
This commit is contained in:
parent
4d07782e7d
commit
f4eda9f59e
|
@ -178,8 +178,8 @@ struct order *ord)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#define BAGPIPEFRACTION dice_rand("2d4+2")
|
||||
#define BAGPIPEDURATION dice_rand("2d10+4")
|
||||
#define BAGPIPEFRACTION (dice(2,4)+2)
|
||||
#define BAGPIPEDURATION (dice(2,10)+4)
|
||||
|
||||
static int
|
||||
use_bagpipeoffear(struct unit *u, const struct item_type *itype,
|
||||
|
|
|
@ -1217,7 +1217,7 @@ void terraform_region(region * r, const terrain_type * terrain)
|
|||
|
||||
if (!fval(r, RF_CHAOTIC)) {
|
||||
int peasants;
|
||||
peasants = (region_maxworkers(r) * (20 + dice_rand("6d10"))) / 100;
|
||||
peasants = (region_maxworkers(r) * (20 + dice(6, 10))) / 100;
|
||||
rsetpeasants(r, MAX(100, peasants));
|
||||
rsetmoney(r, rpeasants(r) * ((wage(r, NULL, NULL,
|
||||
INT_MAX) + 1) + rng_int() % 5));
|
||||
|
|
Loading…
Reference in New Issue