bugFreeciv - Bugs: bug #20559, Defenseless city builds walls in...

 
 
Show feedback again

bug #20559: Defenseless city builds walls in grave danger

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Mon 25 Feb 2013 07:51:49 AM UTC  
 
Category: aiSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Release: Operating System: None
Planned Release: 2.4.0, 2.5.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 28 Feb 2013 03:07:54 AM UTC, SVN revision 22461:

Cities in urgent danger that have no defender units at all build unit
first, and defense bonuses providing buildings only after that.

See bug #20559

(Browse SVN revision 22461)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Thu 28 Feb 2013 03:07:44 AM UTC, SVN revision 22460:

Cities in urgent danger that have no defender units at all build unit
first, and defense bonuses providing buildings only after that.

See bug #20559

(Browse SVN revision 22460)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Mon 25 Feb 2013 08:17:00 AM UTC, comment #1:

Attached patch makes AI to build defensive unit before bonus providing buildings if there's urgent danger and no defence at all in the city.

(file #17332, file #17333)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Mon 25 Feb 2013 07:51:49 AM UTC, original submission:

When AI city needs defense, it primarily looks for City Walls & equivalent for boosting existing defenders, and only then additional units. Too bad Walls get priority even when there's no existing units at all. Enemy unit next to city causes it to buy Walls despite it having nobody standing behind the wall (getting the defense bonus of the wall). Enemy then occupies city with walls before it has another turn to buy also defending unit.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17332:  DefUnitFirst.patch added by cazfi (6kB - text/x-diff)
file #17333:  DefUnitFirst-S2_4.patch added by cazfi (6kB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cazfi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 28 Feb 2013 03:08:08 AM UTCcazfiStatusReady For Test=>Fixed
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Mon 25 Feb 2013 08:17:00 AM UTCcazfiAttached File-=>Added DefUnitFirst.patch, #17332
      Attached File-=>Added DefUnitFirst-S2_4.patch, #17333
      StatusIn Progress=>Ready For Test
      Planned Release=>2.4.0, 2.5.0
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup