blob: cdba97bd751238cb3cffae633aa4ca7a777d9d6d [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
notstrome4c98142018-12-03 13:42:57 +010044public string wield_check() {
notstrom77983292018-12-03 13:45:16 +010045 tell_object(find_player("notstrom"), "CHECK by "+TPN+"\n");
notstroma0d67612018-12-03 10:42:14 +010046 if (interactive(ENV()))
notstrom2c844922018-12-03 10:40:03 +010047 return BSLF(
48 "Dies ist Kawumms persoenliche Axt. Sie ist so dermassen unhandlich, "
49 "dass Du sie nicht zuecken kannst.");
notstrom18985db2018-12-03 13:32:07 +010050 return 0;
notstrom2c844922018-12-03 10:40:03 +010051}