(dchrstr): Replace int members d_mcst and d_emcst (mobility cost * 5)
by float d_mob0 and d_mob1 (straight costs). Impassable terrain now encoded as negative d_mob0 instead of zero d_mcst. Users changed. sect.config updated. (dchr_ca): Replace selectors mcst and emcst by mob0 and mob1. (show_sect_stats): Show real mobility costs.
This commit is contained in:
parent
d16fc6afdd
commit
df6f365a71
8 changed files with 52 additions and 53 deletions
|
@ -172,8 +172,8 @@ struct castr dchr_ca[] = {
|
|||
EF_BAD},
|
||||
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_prd), "prd", EF_PRODUCT},
|
||||
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_peffic), "peffic", EF_BAD},
|
||||
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_mcst), "mcst", EF_BAD},
|
||||
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_emcst), "emcst", EF_BAD},
|
||||
{NSC_FLOAT, 0, 0, offsetof(struct dchrstr, d_mob0), "mob0", EF_BAD},
|
||||
{NSC_FLOAT, 0, 0, offsetof(struct dchrstr, d_mob1), "mob1", EF_BAD},
|
||||
{NSC_SITYPE(d_navigation), 0, 0, offsetof(struct dchrstr, d_nav), "nav",
|
||||
EF_SECTOR_NAVIGATION},
|
||||
{NSC_SITYPE(i_packing), 0, 0, offsetof(struct dchrstr, d_pkg), "pkg",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue