Add condition to make item reset in lose_buffs_on_drop.py only occur if the items has been used since last time it was reset.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@21301 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
219e1b9049
commit
7ecd9c667a
|
@ -1,5 +1,7 @@
|
||||||
2020-08-22 Daniel Hawkins
|
2020-08-22 Daniel Hawkins
|
||||||
* python/commands/dip.py: Make the water identified to avoid infinite identify xp.
|
* python/commands/dip.py: Make the water identified to avoid infinite identify xp.
|
||||||
|
* python/items/lose_buffs_on_drop.py: Add condition to make the calculation only
|
||||||
|
if the item has been used since last time it was dropped.
|
||||||
|
|
||||||
2020-08-16 Rick Tanner
|
2020-08-16 Rick Tanner
|
||||||
|
|
||||||
|
|
|
@ -3,24 +3,26 @@ import Crossfire
|
||||||
me = Crossfire.WhoAmI()
|
me = Crossfire.WhoAmI()
|
||||||
ac = Crossfire.WhoIsActivator()
|
ac = Crossfire.WhoIsActivator()
|
||||||
|
|
||||||
me.Str = me.Archetype.Clone.Str
|
# It is assumed that this buffed weapon uses PermExp to denote how much it has been used.
|
||||||
me.Dex = me.Archetype.Clone.Dex
|
if me.PermExp > 0:
|
||||||
me.Con = me.Archetype.Clone.Con
|
me.Str = me.Archetype.Clone.Str
|
||||||
me.Int = me.Archetype.Clone.Int
|
me.Dex = me.Archetype.Clone.Dex
|
||||||
me.Pow = me.Archetype.Clone.Pow
|
me.Con = me.Archetype.Clone.Con
|
||||||
me.Wis = me.Archetype.Clone.Wis
|
me.Int = me.Archetype.Clone.Int
|
||||||
me.Cha = me.Archetype.Clone.Cha
|
me.Pow = me.Archetype.Clone.Pow
|
||||||
me.HP = me.Archetype.Clone.HP
|
me.Wis = me.Archetype.Clone.Wis
|
||||||
me.SP = me.Archetype.Clone.SP
|
me.Cha = me.Archetype.Clone.Cha
|
||||||
me.Grace = me.Archetype.Clone.Grace
|
me.HP = me.Archetype.Clone.HP
|
||||||
me.LastSP = me.Archetype.Clone.LastSP
|
me.SP = me.Archetype.Clone.SP
|
||||||
me.WC = me.Archetype.Clone.WC
|
me.Grace = me.Archetype.Clone.Grace
|
||||||
me.AC = me.Archetype.Clone.AC
|
me.LastSP = me.Archetype.Clone.LastSP
|
||||||
me.Dam = me.Archetype.Clone.Dam
|
me.WC = me.Archetype.Clone.WC
|
||||||
me.Weight = me.Archetype.Clone.Weight
|
me.AC = me.Archetype.Clone.AC
|
||||||
me.AttackType = me.Archetype.Clone.AttackType
|
me.Dam = me.Archetype.Clone.Dam
|
||||||
me.Food = me.Archetype.Clone.Food
|
me.Weight = me.Archetype.Clone.Weight
|
||||||
# Experience should be affected before Item Power, since it affects that field
|
me.AttackType = me.Archetype.Clone.AttackType
|
||||||
me.AddExp(-me.PermExp)
|
me.Food = me.Archetype.Clone.Food
|
||||||
me.ItemPower = me.Archetype.Clone.ItemPower
|
# Experience should be affected before Item Power, since it affects that field
|
||||||
ac.Write("The "+me.Name+" shudders and looks almost like a normal weapon again.")
|
me.AddExp(-me.PermExp)
|
||||||
|
me.ItemPower = me.Archetype.Clone.ItemPower
|
||||||
|
ac.Write("The "+me.Name+" shudders and looks almost like a normal weapon again.")
|
||||||
|
|
Loading…
Reference in New Issue