Remove option TRADESHIPS, customize table ship-chr instead
Trade ships are now enabled when a ship type with capability trade exists. No such type exists by default; to enable trade ships, deities have to customize table ship-chr. Before, trade ship types were ignored when option TRADESHIPS was disabled. Except for xdump ship-chr, which happily dumped unusable trade ship types.
This commit is contained in:
parent
c4254764bf
commit
352bc320d2
19 changed files with 32 additions and 41 deletions
|
@ -131,12 +131,7 @@ orde(void)
|
|||
if (!*p || !strcmp(p, "-")) {
|
||||
pr("A one-way order has been accepted.\n");
|
||||
} else if (!strncmp(p, "s", 1)) {
|
||||
if (opt_TRADESHIPS) {
|
||||
if (!(mchr[(int)ship.shp_type].m_flags & M_TRADE)) {
|
||||
pr("You can't auto-scuttle that ship!\n");
|
||||
return RET_SYN;
|
||||
}
|
||||
} else {
|
||||
if (!(mchr[(int)ship.shp_type].m_flags & M_TRADE)) {
|
||||
pr("You can't auto-scuttle that ship!\n");
|
||||
return RET_SYN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue