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