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 05 May 2012 07:22:21 AM UTC  
 
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 17 Jun 2012 05:04:24 AM UTC, 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 07 Jun 2012 07:08:05 PM UTC, 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 14 May 2012 06:27:30 PM UTC, comment #4:

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

(file #15740)

Riss Aline <akihara>
Project Member
Wed 09 May 2012 03:25:31 PM UTC, comment #3:

We only consider the change of poisoning a unit.

(file #15718)

Riss Aline <akihara>
Project Member
Wed 09 May 2012 11:13:43 AM UTC, 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 05 May 2012 09:16:33 AM UTC, 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 05 May 2012 07:22:21 AM UTC, 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):
   
   
Comment:
   

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.

     

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

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 May 2012 06:27:30 PM UTCakiharaAttached File-=>Added poison_stuffV5.patch, #15740
    Wed 09 May 2012 03:25:31 PM UTCakiharaAttached File-=>Added poison_stuffV4.patch, #15718
    Wed 09 May 2012 11:13:43 AM UTCakiharaAttached File-=>Added poison_stuffV3.patch, #15717
    Sun 06 May 2012 11:46:17 AM UTCmordanteAssigned toNone=>mordante
    Sat 05 May 2012 09:16:33 AM UTCakiharaAttached File-=>Added poison_stuffV2.patch, #15673
    Sat 05 May 2012 07:22:22 AM UTCakiharaAttached File-=>Added poison_stuff.patch, #15671
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup