blob: a7e5daff50c32705286ae6875a52f3d074990f93 [file] [log] [blame]
Zesstra953f9972017-02-18 15:37:36 +01001
2IsArmour()
3**********
4
5
6FUNKTION
7========
8
9 status IsArmour()
10
11
12DEFINIERT IN
13============
14
15 /std/armour/wear.c
16
17
18RUeCKGABEWERT
19=============
20
21 1 wenn ein Ruestung
22 0 sonst
23
24
25BESCHREIBUNG
26============
27
28 Gibt 1 zurueck, wenn entsprechende Klasse irgendwo geerbt wurden, es
29 also eine Ruestung ist.
30
31
32BEMERKUNGEN
33===========
34
35 Entsprechende Basisklasse ueberschreibt und gibt fuer IsClothing()
36 explizit 0 zurueck.
37
38
39BEISPIEL
40========
41
42 // enthaelt im Gegensatz zu P_ARMOURS auch nichtgetragenen Kram
43 // im Inventory L1
44 object *allarmours =
45 filter_objects(all_inventory(this_player()), "IsArmour")
46
47
48SIEHE AUCH
49==========
50
51 Aehnlich: living, interactive
52 Aehnlich: IsBottle, IsClothing, IsPlayerCorpse, IsRoom, IsUnit
53 Props: P_ARMOURS
54
553. Sep 2016, Gloinson