URL:
http://gna.org/bugs/?22436
Summary: city_gold_worth() far too low
Project: Freeciv
Submitted by: cazfi
Submitted on: Mon 04 Aug 2014 12:45:17 AM EEST
Category: ai
Severity: 3 - Normal
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Discussion Lock: Any
Operating System: None
Planned Release: 2.5.0-beta2, 2.6.0
___
Details:
Fix to logical errors part attached. When AI is trading cities, it might need
also higher multiplier for the value, but that doesn't belong to this ticket.
Error - Fix
- Obsolete units are considered only half the value of the shields one gets
when disbanding them / obsolete units are considered worth the value of the
disbanding
- Useful units are not considered worth more than value of immediate
disbanding / useful units are considered worth their production value
- Obsolete buildings are considered only half the value of the gold one gets
when selling it / obsolete buildings are considered worth their selling value
- Useful buildings are not considered worth more than value of the immediate
sell / useful buildings are considered worth their buy cost
- Wonders are not considered worth more than regular buildings / wonders are
considered worth their buy cost, which is twice that of regular buildings
As AI is anyway multiplying the value returned from this function, fix is not
obviously improving S2_4 so leaving behavior change out from branch that
stable.
___
File Attachments:
---
Date: Mon 04 Aug 2014 12:45:17 AM EEST Name: CityGoldWorth.patch Size: 1kB
By: cazfi
http://gna.org/bugs/download.php?file_id=21651
---
Date: Mon 04 Aug 2014 12:45:17 AM EEST Name: CityGoldWorth-S2_5.patch Size:
1kB By: cazfi
http://gna.org/bugs/download.php?file_id=21652
___
Reply to this item at:
http://gna.org/bugs/?22436
___
Message sent via/by Gna!
http://gna.org/
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev