Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2002:
[freeciv-ai] Re: ai hp recovery patch v7

[freeciv-ai] Re: ai hp recovery patch v7

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: ai hp recovery patch v7
From: Jordi Negrevernis i Font <jorneg@xxxxxxxxxxx>
Date: Tue, 13 Aug 2002 23:25:04 +0200

Per I. Mathisen wrote:


decides what to do with a military unit.
@@ -2229,7 +2359,10 @@
  if (punit->activity != ACTIVITY_IDLE)
    handle_unit_activity_request(punit, ACTIVITY_IDLE);

-  punit->ai.ai_role = AIUNIT_NONE; /* this can't be right -- Per */
+  if (!punit->ai.ai_role == AIUNIT_RECOVER_HIT_POINTS) {
+    /* this can't be right but leave it like this for now -- Per */
+ punit->ai.ai_role = AIUNIT_NONE; + }

Be aware that the original code in my recovery_hp6 patch is necessary to keep the long term objective for units that go to a city without barracks or port. They just will recover only some hitpoints. May be this has some interaction with your statistics!

[Prev in Thread] Current Thread [Next in Thread]