This is awesome. There is but one tiny flaw which sits in my ointment of enjoyment like the ugly fly it is....
The Brushburn Deflector.
There's nothing actually wrong with the concept; a shield that grows.
However it does something irritating.
What I gather it's supposed to do is add 40hp to the shield max. every time it collapses upto 10 times which it does fine, the problem being that if a lv.10 shield collapses it wraps round it's limit and reverts to lv.1 losing all the extra hp.
The bit in question:
Code: Select all
<OnShieldDown>
(block (charges chargesDelta newStrength maxCharges)
(setq charges (itmGetCharges gItem))
(setq maxCharges 10)
(if (ls charges maxCharges)
(setq chargesDelta 1)
(setq chargesDelta (subtract 0 maxCharges))
)
(shpRechargeItem gSource gItem chargesDelta)
(objSendMessage gSource Nil (cat "Analyzing failure. . .Advancing to strength level " (add (add charges chargesDelta) 1)))
)
</OnShieldDown>