patchBattle for Wesnoth - Patches: patch #3275, AI - Spread poison around

Show feedback again

patch #3275: AI - Spread poison around

Submitted by:  Riss Aline <akihara>
Submitted on:  Sat May 5 07:22:21 2012  
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: Mark de Wever <mordante>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Sun Jun 17 05:04:24 2012, comment #6:

I think this patch gives poison positive weight when attacking a unit that will advance. Poison damage should probably be ignored in a kill-or-advance situation.

This patch also appears to give poison its full weight when attacking a unit that will be left with very low health; generally such units don't suffer much from being poisoned (it just makes healing them take 1 turn longer). Not sure how easy that would be to fix, though.

Silas Brill <brilliand>
Project Member
Thu Jun 7 19:08:05 2012, SVN revision 54379:

Patch #3275 by akihara: AI now properly consders the expected damage from poison when attacking using poisoners

(Browse SVN revision 54379)

Iurii Chernyi <crab>
Project Member
Mon May 14 18:27:30 2012, comment #4:

Consider the fact to poison a unit who will survive after the attack.

(file #15740)

Riss Aline <akihara>
Project Member
Wed May 9 15:25:31 2012, comment #3:

We only consider the change of poisoning a unit.

(file #15718)

Riss Aline <akihara>
Project Member
Wed May 9 11:13:43 2012, comment #2:

Third version:

I only add 1 to the rating value if the unit is not poison AND the attacker can poison him
Second, I take into account the chance of an unit to be poison if he is not.

(file #15717)

Riss Aline <akihara>
Project Member
Sat May 5 09:16:33 2012, comment #1:

"is_poisoned" became "is_poisoned_before_attack" for a better comprehension.

Also add the changelog entry.

(file #15673)

Riss Aline <akihara>
Project Member
Sat May 5 07:22:21 2012, original submission:

Units must be capable to spread poison around.

I add a boolean "is_poisoned" which is true if the unit is poisoned at the beginning of the battle.
If he is not, I had +1 to the rating value.

Riss Aline <akihara>
Project Member


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

Attach File(s):

Attached Files
file #15740:  poison_stuffV5.patch added by akihara (2kB - text/x-patch)
file #15718:  poison_stuffV4.patch added by akihara (2kB - text/x-patch)
file #15717:  poison_stuffV3.patch added by akihara (3kB - text/x-patch)
file #15673:  poison_stuffV2.patch added by akihara (2kB - text/x-patch)
file #15671:  poison_stuff.patch added by akihara (1kB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by brilliand (Posted a comment)
  • -unavailable- added by mordante (Updated the item)
  • -unavailable- added by akihara (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.


    Error: not logged in



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon May 14 18:27:30 2012akiharaAttached File-=>Added poison_stuffV5.patch, #15740
    Wed May 9 15:25:31 2012akiharaAttached File-=>Added poison_stuffV4.patch, #15718
    Wed May 9 11:13:43 2012akiharaAttached File-=>Added poison_stuffV3.patch, #15717
    Sun May 6 11:46:17 2012mordanteAssigned toNone=>mordante
    Sat May 5 09:16:33 2012akiharaAttached File-=>Added poison_stuffV2.patch, #15673
    Sat May 5 07:22:22 2012akiharaAttached File-=>Added poison_stuff.patch, #15671
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup