Author: sveinung
Date: Wed Oct  5 14:02:27 2016
New Revision: 34006

URL: http://svn.gna.org/viewcvs/freeciv?rev=34006&view=rev
Log:
Unhardcode "Marines" and "AttFromNonNative".

Move the "Marines" unit type flag and the "AttFromNonNative" unit class flag
to the ruleset. Ruleset authors can now control things like their help text,
what actions they should apply to, the details of their rules and if they
should exist at all.

Example: Viking units can do spy actions, trade actions and attack actions
while being transported. Other nations can't do them while being
transported.

See patch #4683

Modified:
    trunk/client/helpdata.c
    trunk/common/actions.c
    trunk/common/combat.c
    trunk/common/movement.c
    trunk/common/unittype.h
    trunk/data/alien/game.ruleset
    trunk/data/alien/units.ruleset
    trunk/data/civ1/game.ruleset
    trunk/data/civ1/units.ruleset
    trunk/data/civ2/game.ruleset
    trunk/data/civ2/units.ruleset
    trunk/data/civ2civ3/game.ruleset
    trunk/data/civ2civ3/units.ruleset
    trunk/data/classic/game.ruleset
    trunk/data/classic/units.ruleset
    trunk/data/experimental/game.ruleset
    trunk/data/experimental/units.ruleset
    trunk/data/multiplayer/game.ruleset
    trunk/data/multiplayer/units.ruleset
    trunk/data/ruledit/comments.txt
    trunk/data/sandbox/game.ruleset
    trunk/data/sandbox/units.ruleset
    trunk/data/stub/units.ruleset
    trunk/data/webperimental/game.ruleset
    trunk/data/webperimental/units.ruleset
    trunk/doc/README.actions
    trunk/fc_version
    trunk/server/rscompat.c

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: trunk/client/helpdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/helpdata.c?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/common/combat.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/combat.c?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/common/movement.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/movement.c?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/common/unittype.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/unittype.h?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/alien/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/alien/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/civ1/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/civ1/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/civ2/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/civ2/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/civ2civ3/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/civ2civ3/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/classic/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/classic/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/experimental/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/experimental/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/multiplayer/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/multiplayer/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/ruledit/comments.txt
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/ruledit/comments.txt?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/sandbox/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/sandbox/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/sandbox/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/sandbox/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/stub/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/webperimental/game.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/webperimental/game.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/data/webperimental/units.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/webperimental/units.ruleset?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/doc/README.actions
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.actions?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/fc_version
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/fc_version?rev=34006&r1=34005&r2=34006&view=diff

Modified: trunk/server/rscompat.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/rscompat.c?rev=34006&r1=34005&r2=34006&view=diff


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to