edit: Limit resources to 100 instead of 127
Back in Empire 1, resources were limited consistently: fertility to 120, all others to 100. When Chainsaw added setresource, consistency was lost: fertility got limited to 100 there. Chainsaw 3 changed edit to limit all resources to 127. Commit3fcee8dd
and commit8e430ae2
(both v4.3.11) changed fairland and setsector to limit fertility to 100, matching setresource. Now only edit remains different. Change it to finally make things consistent again. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
d4e9dccbcc
commit
a41c74967d
4 changed files with 42 additions and 43 deletions
|
@ -466,27 +466,27 @@ edit_sect(struct sctstr *sect, char *key, int arg, char *p)
|
|||
sect->sct_mobil = new;
|
||||
break;
|
||||
case 'i':
|
||||
new = LIMIT_TO(arg, 0, 127);
|
||||
new = LIMIT_TO(arg, 0, 100);
|
||||
noise(sect, "Iron ore content", sect->sct_min, new);
|
||||
sect->sct_min = (unsigned char)new;
|
||||
break;
|
||||
case 'g':
|
||||
new = LIMIT_TO(arg, 0, 127);
|
||||
new = LIMIT_TO(arg, 0, 100);
|
||||
noise(sect, "Gold content", sect->sct_gmin, new);
|
||||
sect->sct_gmin = (unsigned char)new;
|
||||
break;
|
||||
case 'f':
|
||||
new = LIMIT_TO(arg, 0, 127);
|
||||
new = LIMIT_TO(arg, 0, 100);
|
||||
noise(sect, "Fertility", sect->sct_fertil, new);
|
||||
sect->sct_fertil = (unsigned char)new;
|
||||
break;
|
||||
case 'c':
|
||||
new = LIMIT_TO(arg, 0, 127);
|
||||
new = LIMIT_TO(arg, 0, 100);
|
||||
noise(sect, "Oil content", sect->sct_oil, new);
|
||||
sect->sct_oil = (unsigned char)new;
|
||||
break;
|
||||
case 'u':
|
||||
new = LIMIT_TO(arg, 0, 127);
|
||||
new = LIMIT_TO(arg, 0, 100);
|
||||
noise(sect, "Uranium content", sect->sct_uran, new);
|
||||
sect->sct_uran = (unsigned char)new;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue