ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/pod/events.pod
(Generate patch)

Comparing deliantra/server/pod/events.pod (file contents):
Revision 1.5 by root, Sun Sep 17 18:19:19 2006 UTC vs.
Revision 1.6 by root, Sun Dec 10 20:15:58 2006 UTC

48made. The copy automatically has all attachments the original object 48made. The copy automatically has all attachments the original object
49had. The perl variables get copied in a shallow way (references are shared 49had. The perl variables get copied in a shallow way (references are shared
50between instances). If this is not the behaviour you need, you have to 50between instances). If this is not the behaviour you need, you have to
51adjust the B<destination> object as you see fit. 51adjust the B<destination> object as you see fit.
52 52
53=head3 add_bonus (item creator difficulty max_magic flags)
54
55A basic item has been created (e.g. for shops, monsters drops etc.)
56that needs bonus values applied. The B<creator> object is a template
57object that can be used to inherit stuff (and can be NULL). Flags is a
58combination of GT_ENVIRONMENT (???) or GT_STARTEQUIP (set FLAG_STARTEQUIP
59on item or set its value to 0) or GT_MINIMAL (???)
60
61When overriden, built-in bonus generation is skipped, otherwise
62treasure generation continues as it would without this hook.
63
64In general, if flags != 0 or creator != 0 you should just return and leave
65item generation to the standard code.
66
53=head3 destroy (object) 67=head3 destroy (object)
54 68
55Invoked when the crossfire object gets destroyed, and only when the object 69Invoked when the crossfire object gets destroyed, and only when the object
56has a handler for this event. This event can occur many times, as its 70has a handler for this event. This event can occur many times, as its
57called when the in-memory object is destroyed, not when the object itself 71called when the in-memory object is destroyed, not when the object itself

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines