… | |
… | |
91 | Invoked whenever the object "ticks", i.e. has positive B<speed_left>. Only |
91 | Invoked whenever the object "ticks", i.e. has positive B<speed_left>. Only |
92 | during ticks should an objetc process any movement or other events. |
92 | during ticks should an objetc process any movement or other events. |
93 | |
93 | |
94 | =head3 kill (object hitter -- ) |
94 | =head3 kill (object hitter -- ) |
95 | |
95 | |
96 | Invoked whenever an object is dead and about to get removed. Overriding |
96 | Invoked whenever an object was killed (hp < 0 caused by an attack) and is |
97 | processing will skip removal, but to do this successfully you have to |
97 | about to get removed. Overriding processing will skip removal, but to do |
98 | objetc from dieing, otherwise the event gets invoked again and again. |
98 | this successfully you have to keep the object from dieing, otherwise the |
|
|
99 | event gets invoked again and again. |
99 | |
100 | |
100 | =head3 apply (object who -- applytype) |
101 | =head3 apply (object who -- applytype) |
101 | |
102 | |
102 | Invoked whenever the object is being applied in some way. The applytype is one of: |
103 | Invoked whenever the object is being applied in some way. The applytype is one of: |
|
|
104 | |
|
|
105 | =head3 auto_apply (object) |
|
|
106 | |
|
|
107 | Invoked whenever the object is automatically applied (as for example shop tiles |
|
|
108 | are on map instantiation). See also the 'auto_apply' flag to enforce auto apply on |
|
|
109 | any object. |
103 | |
110 | |
104 | =over 4 |
111 | =over 4 |
105 | |
112 | |
106 | =item B<0> player or monster can't apply objects of that type |
113 | =item B<0> player or monster can't apply objects of that type |
107 | |
114 | |