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

Comparing deliantra/server/pod/objects.pod (file contents):
Revision 1.29 by root, Thu Dec 4 03:48:19 2008 UTC vs.
Revision 1.30 by elmex, Mon Jan 12 00:17:23 2009 UTC

264will be generated. 264will be generated.
265 265
266After the new object is created the I<hp> field from the old object is copied into 266After the new object is created the I<hp> field from the old object is copied into
267the new one. 267the new one.
268 268
269When the old object was a B<LAMP> it's I<food> fields value less 1 will be copied
270to the new object.
271
272=item FLAG_IS_A_TEMPLATE (internal use) 269=item FLAG_IS_A_TEMPLATE (internal use)
273 270
274This flag is set on the inventory of generators like B<CREATOR>s and B<CONVERTER>s, 271This flag is set on the inventory of generators like B<CREATOR>s and B<CONVERTER>s,
275or other objects that have the flags FLAG_GENERATOR and FLAG_CONTENT_ON_GEN set. 272or other objects that have the flags FLAG_GENERATOR and FLAG_CONTENT_ON_GEN set.
276 273
1065 1062
1066=head3 B<MISC_OBJECT> - type 79 - Misc. objects 1063=head3 B<MISC_OBJECT> - type 79 - Misc. objects
1067 1064
1068A type for any object that has no special behaviour. 1065A type for any object that has no special behaviour.
1069 1066
1070=head3 B<LAMP> - type 82 - A lamp
1071
1072This object represents a lamp, that can be carried and switched
1073on and off and has a certain amount of fuel in it.
1074
1075A lamp consists of two archetypes: the 'on' archetype and the 'off' archetype.
1076Each of them should point at the other one with it's I<other_arch> field.
1077
1078See the I<other_arch> field for the behaviour of a lamp object when it is applied.
1079
1080If this object has FLAG_IS_LIGHTABLE set the lamp can be turned on and off
1081with a B<LIGHTER>, see also the description of FLAG_IS_LIGHTABLE.
1082
1083=over 4
1084
1085=item I<glow_radius> <number>
1086
1087The radius of the light that the lamp emits, see also I<glow_radius> in the
1088generic object flags description.
1089
1090=item I<speed> <number>
1091
1092If FLAG_CHANGING is set the I<speed> field will indicate how fast the
1093lamp burns it's fuel (I<food>).
1094
1095Setting FLAG_CHANGING makes only sense on the archetype which represents
1096the 'on' state of the lamp.
1097
1098See also the description of FLAG_CHANGING.
1099
1100Lamps which have no FLAG_CHANGING set would also make sense and represent
1101lamps that never burn up.
1102
1103=item I<other_arch> <number>
1104
1105This is the field that points to the 'other' archetype which represents the
1106opposite state of the lamp. The newly from I<other_arch> derived object will
1107replace the current object and will get the value of I<food> of the replaced object.
1108
1109Rationale:
1110
1111When the lamp (on) is applied a new object is derived from the archetype
1112in I<other_arch> and the I<food> value is copied to it ('the fuel is
1113transferred'). The new lamp (off) object has to have a I<other_arch> field
1114which points to the archetype from which a lamp (on) can be derived.
1115
1116=item I<food> <number>
1117
1118This fields stands for the fuel of the lamp.
1119
1120=back
1121
1122=head3 B<DUPLICATOR> - type 83 - Duplicators or: Multiplicators 1067=head3 B<DUPLICATOR> - type 83 - Duplicators or: Multiplicators
1123 1068
1124This type of objects multiplies objects that are above it when it is activated. 1069This type of objects multiplies objects that are above it when it is activated.
1125You can even multiply by 0, which will destroy the object. 1070You can even multiply by 0, which will destroy the object.
1126 1071

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines