URL:
<http://gna.org/patch/?6383>
Summary: Don't do Help Wonder via Disband Unit
Project: Freeciv
Submitted by: sveinung
Submitted on: Mon 28 Sep 2015 07:03:01 PM UTC
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: sveinung
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 3.0.0
_______________________________________________________
Details:
Performing the Help Wonder action in handle_unit_disband() makes the function
more complex than it has to be. It is easy to forget to check if a change done
to do_unit_help_wonder() also should be done in handle_unit_disband()'s Help
Wonder. Remove it.
No hard coded rule has (intentionally) been changed. The Help Wonder action
now blocks Disband Unit. When the game disbands a unit because of upkeep it
should behave like it used to.
Don't upgrade old unit orders. An order to disband a unit in a city was
probably not intended as Help Wonder. ORDER_BUILD_WONDER and ORDER_DISBAND
were added in the same commit.
The AI won't start looking for a better alternative to its current behavior
when it must disband a unit.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 28 Sep 2015 07:03:01 PM UTC Name:
0001-Don-t-do-Help-Wonder-via-Disband-Unit.patch Size: 11kB By: sveinung
<http://gna.org/patch/download.php?file_id=25208>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6383>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev