[crossfire] Spells consuming items

Nicolas Weeger nicolas.weeger at laposte.net
Sun Jan 24 13:07:07 CST 2010


Hello.

I just committed a small patch enabling spells to require and consume items 
when cast.

The patch uses a 'casting_requirements' key (in the spell object itself) to 
enforce restrictions.
The value should be a list of items, like the alchemy uses.
Currently it is restricted to 10 items (hardcoded value) - putting more will 
make the spell impossible to cast.


Check the 'test/spell_requirements' maps for an example.



Now let your imagination take over and invent fun spells with weird items! :)



Nicolas
-- 
http://nicolas.weeger.org [Mon p'tit coin du web]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mailman.metalforge.org/pipermail/crossfire/attachments/20100124/0316c3b8/attachment.pgp 


More information about the crossfire mailing list