[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:objects

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Fri Dec 1 07:33:28 CST 2006


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2006/12/01 07:33
User        : ryo
Edit Summary: format

@@ -737,8 +737,9 @@
  type is 0 (no material) or is Adamantite, the object can not be harmed in
  any way.
  
  An object can have multiple material types by adding these values together.
+ 
  
  
  ===== Item Power (item_power) =====
  
@@ -762,28 +763,26 @@
  
  For items automatically generated by the treasure code, the following
  formula is used:
  
- # enchantments        power
-     0        0
-     1        0
-     2        1
-     3        2
-     4        3
-     5        5
-     6        8
-     7        11
+ ^ # enchantments        ^ power ^
+ | 0 | 0 |
+ | 1 | 0 |
+ | 2 | 1 |
+ | 3 | 2 |
+ | 4 | 3 |
+ | 5 | 5 |
+ | 6 | 8 |
+ | 7 | 11 |
  
  An enchantment is:
- Each plus an item has.
- Each point an item increases an ability.
- Each 20% protection an item gives (rounded normally, eg 0-9 counts as nothing,
- 10-29 counts as one, etc)
- Each attacktype a weapon has.
- Spell path adjustments
+   * each plus an item has.
+   * each point an item increases an ability.
+   * each 20% protection an item gives (rounded normally, eg 0-9 counts as nothing, 10-29 counts as one, etc)
+   * each attacktype a weapon has.
+   * spell path adjustments
  
- This same formula can be used for custom objects to figure out their
- item power.
+ This same formula can be used for custom objects to figure out their item power.
  
  While the item_power field in the object structure is signed, in general,
  there should not be objects with a negative item power.  However, negative
  effects an item has may reduce the item power.  Eg, a 
@@ -791,9 +790,9 @@
  
  Note: The enforcement of item power is currently not in use as of this
  writing (Aug 2002).  Further refinement is needed on the power rating
  for items.  However, if you are creating a new magic item, setting
- an appropriate item_power would save work later on.
+ an appropriate item_power would save work later on. FIXME it's in use, no?
  
  ===== Body Location =====
  
  The body locations information determines where the item is equipped onto


IP-Address  : 213.174.127.3
Old Revision: http://wiki.metalforge.net/doku.php/dev:objects?rev=1164975283
New Revision: http://wiki.metalforge.net/doku.php/dev:objects

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list