Author: sveinung Date: Thu Oct 15 05:12:20 2015 New Revision: 30092 URL: http://svn.gna.org/viewcvs/freeciv?rev=30092&view=rev Log: Mark actions with rare act sel dlg pop ups
A unit's ability to perform an action can cause the action selection dialog to pop up before the player asks for it. It can happen when a unit is transported into a city it is capable of performing an action to. It can happen when a unit tries to move to a tile that has a target it may act against. This behavior isn't desirable for all actions. An action that can be performed against almost every tile will annoy the user with a pop up each time it moves. Being offered to do something dangerous is a situation where it would be destructive can lead to the player's reflexes to accidentally perform it. Introduce the new action property rare_pop_up. A unit's ability to perform an action where it is true will only pop up the action selection dialog before the player asks for it in exceptional cases. At the moment that is limited to the case when the player tries to move a unit to a tile it can't move to but can perform the action to. Have the rare_pop_up action property replace the special rules for when a (potentially) legal action with a tile target can pop up the action selection dialog. Give the rare_pop_up action property to the actions "Explode Nuclear", "Found City", "Join City" and "Recycle Unit". Inspired by Marko Lindqvist <cazfi>'s "user_initiated" action property idea in patch #6168. See patch #6413 Modified: trunk/common/actions.c trunk/common/actions.h trunk/server/actiontools.c trunk/server/actiontools.h trunk/server/unithand.c trunk/server/unittools.c [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/common/actions.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=30092&r1=30091&r2=30092&view=diff Modified: trunk/common/actions.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.h?rev=30092&r1=30091&r2=30092&view=diff Modified: trunk/server/actiontools.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/actiontools.c?rev=30092&r1=30091&r2=30092&view=diff Modified: trunk/server/actiontools.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/actiontools.h?rev=30092&r1=30091&r2=30092&view=diff Modified: trunk/server/unithand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=30092&r1=30091&r2=30092&view=diff Modified: trunk/server/unittools.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=30092&r1=30091&r2=30092&view=diff _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits