]> git.pond.sub.org Git - empserver/commit
Remove non-mission land unit reaction
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 25 Nov 2008 01:31:22 +0000 (20:31 -0500)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 25 Dec 2008 10:47:05 +0000 (11:47 +0100)
commitbf89453f8abadd16a2c360c724228e36d6ec550e
tree7439be8c23ad9cc7d3968a513e43618fb15d5acf
parent8e527b6cff28d96949dfdb72e262cff380ef2e84
Remove non-mission land unit reaction

Land unit reactions are overly complex because we have two different
concepts controlling them: reaction radius (set with lrange) and
reserve mission (set with mission).  You need to deal with both to set
up or query reactions.

Commit 8d0e1af5 "fixed" this by making reserve missions meaningless.

The previous commit made reserve missions meaningful again: they
support an op-area now.  This brought back the problem of having to
deal with two separate commands to accomplish one thing.

Fix this for good by removing non-mission land unit reaction
alltogether.  The only feature we lose by that is the ability to order
land units to react until the order is explicitely cancelled.  That's
because missions are implicitely cleared by many commands and events,
while non-mission reaction wasn't.  Closes #858121 and #858122.

Remove the non-mission reaction case from att_reacting_units().

Don't limit reserve missions to the land unit's reaction radius: make
lnd_reaction_range() return the type's maximum radius instead of
lnd_rad_max.

The reaction radius is now useless.  Remove the lrange command, and
struct lndstr member lnd_rad_max along with its selector react.
Remove land command's column rd.  Make ldump show column react as
zero.  Deprecate edit key 'P' in dounit(), and don't show it in
pr_land().
17 files changed:
include/land.h
include/prototypes.h
info/Attacking.t
info/Land-units.t
info/Novice.t
info/land.t
info/lrange.t [deleted file]
info/mission.t
src/lib/commands/edit.c
src/lib/commands/land.c
src/lib/commands/ldump.c
src/lib/commands/rang.c
src/lib/common/nsc.c
src/lib/player/empmod.c
src/lib/subs/attsub.c
src/lib/subs/lndsub.c
src/lib/subs/unitsub.c