notstrom | 2c84492 | 2018-12-03 10:40:03 +0100 | [diff] [blame] | 1 | inherit "/std/weapon"; |
| 2 | |
notstrom | b83480d | 2018-12-03 10:41:27 +0100 | [diff] [blame] | 3 | #include <new_skills.h> |
notstrom | 2c84492 | 2018-12-03 10:40:03 +0100 | [diff] [blame] | 4 | #include __PATH__(1)"defs.h" |
| 5 | |
| 6 | |
| 7 | protected void create() { |
| 8 | if (!clonep()) { |
| 9 | set_next_reset(-1); |
| 10 | return; |
| 11 | } |
| 12 | ::create(); |
| 13 | |
| 14 | SetProp(P_SHORT, "Eine besondere Axt"); |
| 15 | SetProp(P_LONG, BSLF( |
notstrom | d60962e | 2018-12-09 18:17:44 +0100 | [diff] [blame^] | 16 | "Dies ist die Axt von Kawumm, dem Zwerg. Sie ist allerdings nicht fuer " |
| 17 | "Spielerhaende gedacht.")); |
notstrom | 2c84492 | 2018-12-03 10:40:03 +0100 | [diff] [blame] | 18 | |
| 19 | SetProp(P_NAME, "Axt"); |
| 20 | SetProp(P_GENDER, FEMALE); |
| 21 | AddId(({"axt"})); |
| 22 | |
| 23 | SetProp(P_WC, 180); |
| 24 | SetProp(P_WEAPON_TYPE, WT_AXE); |
| 25 | SetProp(P_DAM_TYPE, DT_SLASH); |
| 26 | SetProp(P_NR_HANDS, 1); |
| 27 | |
notstrom | d60962e | 2018-12-09 18:17:44 +0100 | [diff] [blame^] | 28 | /* Als Variante des letzten Beispieles: Wenn es egal ist, welcher NPC |
| 29 | die Axt zuecken darf, dann geht es auch ohne zusaetzliche Function: */ |
| 30 | SetProp(P_RESTRICTIONS, ([SR_PROP: ([P_NPC:1])])); |
notstrom | 2c84492 | 2018-12-03 10:40:03 +0100 | [diff] [blame] | 31 | |
| 32 | SetProp(P_VALUE, 200); |
| 33 | SetProp(P_WEIGHT, 3250); |
| 34 | SetProp(P_SIZE, 90); |
| 35 | |
| 36 | SetProp(P_MATERIAL, ([MAT_STEEL:100])); |
| 37 | } |
| 38 | |