blob: b557471577fb0361437a3b1c8a7515ba149531f9 [file] [log] [blame]
notstrom2c844922018-12-03 10:40:03 +01001/*
2 Eine andere Moeglichkeit, eine Waffe nur fuer einen NPC zur Verfuegung zu
3 stellen ist ein wenig frustrierender fuer Spieler. Man sollte Beispiele
4 wie dieses nicht ungeprueft uebernehmen. Waffen, die kein Spieler zuecken
5 kann, stossen meist nicht auf sehr hohen Enthusiasmus beim Spieler, die
6 betreffende Gegend mehrmals zu aufzusuchen.
7*/
8inherit "/std/weapon";
9
notstromb83480d2018-12-03 10:41:27 +010010#include <new_skills.h>
notstrom2c844922018-12-03 10:40:03 +010011#include __PATH__(1)"defs.h"
12
13
14protected void create() {
15 if (!clonep()) {
16 set_next_reset(-1);
17 return;
18 }
19 ::create();
20
21 SetProp(P_SHORT, "Eine besondere Axt");
22 SetProp(P_LONG, BSLF(
23 "Dies ist die Axt von Kawumm, dem Zwerg. Niemand kann so damit zuhauen "
24 "wie er."));
25
26 SetProp(P_NAME, "Axt");
27 SetProp(P_GENDER, FEMALE);
28 AddId(({"axt"}));
29
30 SetProp(P_WC, 180);
31 SetProp(P_WEAPON_TYPE, WT_AXE);
32 SetProp(P_DAM_TYPE, DT_SLASH);
33 SetProp(P_NR_HANDS, 1);
34
35 SetProp(P_RESTRICTIONS, ([SR_FUN: "wield_check"]));
36
37 SetProp(P_VALUE, 200);
38 SetProp(P_WEIGHT, 3250);
39 SetProp(P_SIZE, 90);
40
41 SetProp(P_MATERIAL, ([MAT_STEEL:100]));
42}
43
44public mixed wield_check() {
45 if (interactive(ENV())
46 return BSLF(
47 "Dies ist Kawumms persoenliche Axt. Sie ist so dermassen unhandlich, "
48 "dass Du sie nicht zuecken kannst.");
49 return 1;
50}