Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame^] | 1 | |
| 2 | P_QUALITY |
| 3 | ********* |
| 4 | |
| 5 | |
| 6 | NAME |
| 7 | ==== |
| 8 | |
| 9 | P_QUALITY "quality" |
| 10 | |
| 11 | |
| 12 | DEFINIERT IN |
| 13 | ============ |
| 14 | |
| 15 | <combat.h> |
| 16 | |
| 17 | |
| 18 | BESCHREIBUNG |
| 19 | ============ |
| 20 | |
| 21 | Ruestungen und Waffen koennen im Eifer des Gefechts beschaedigt werden. |
| 22 | Setzt man die Property P_QUALITY auf einen Wert n (n>0), so wird |
| 23 | eine Waffe (Ruestung) bei jedem n-ten Schlag (Treffer) beschaedigt, |
| 24 | d.h. P_WC (P_AC) wird um 1 erniedrigt und P_DAMAGED um 1 erhoeht. |
| 25 | |
| 26 | |
| 27 | BEISPIEL |
| 28 | ======== |
| 29 | |
| 30 | inherit "/std/weapon"; |
| 31 | |
| 32 | ... |
| 33 | #include <combat.h> |
| 34 | |
| 35 | create() |
| 36 | { |
| 37 | ... |
| 38 | SetProp(P_QUALITY,200); |
| 39 | ... |
| 40 | } |
| 41 | |
| 42 | Diese Waffe wuerde bei jedem 200. Schlag etwas beschaedigt. |
| 43 | |
| 44 | |
| 45 | BEMERKUNG |
| 46 | ========= |
| 47 | |
| 48 | Defaultmaessig ist P_QUALITY auf 0 gesetzt, d.h. die entspr. |
| 49 | Waffe/Ruestung wird nicht beschaedigt. |
| 50 | |
| 51 | |
| 52 | SIEHE AUCH |
| 53 | ========== |
| 54 | |
| 55 | /std/armour.c, /std/weapon.c, TakeFlaw(), QueryFlaw(), Damage() |
| 56 | |
| 57 | Last modified: Thu May 22 10:42:39 1997 by Paracelsus |