blob: 82de3c9d75cccb97bf37adbdfc5e381b65bbc4e2 [file] [log] [blame]
Zesstra953f9972017-02-18 15:37:36 +01001
2InList()
3********
4
5
6FUNKTION
7========
8
9 int InList(object room, int *potionlist, int *knownlist)
10
11
12DEFINIERT IN
13============
14
15 /secure/potionmaster.c
16
17
18ARGUMENTE
19=========
20
21 Implizit: previous_object() - Spielerobjekt, das ZT bekommen soll
22 object room - Objekt, welches ZT vergeben will
23 int* potionlist - Liste der ZTs des Spielers
24 int* knownlist - Liste der bekannten ZTs des Spielers
25
26
27BESCHREIBUNG
28============
29
30 Prueft, ob 'room' einen ZT vergeben darf und gibt zurueck, ob die
31 Nummer dieses ZTs in der 'knownlist' enthalten ist.
32
33
34RUeCKGABEWERT
35=============
36
37 0 Kein aktiver ZT oder nicht in Liste enthalten.
38 1 Aktiver ZT und in Liste.
39
40
41SIEHE AUCH
42==========
43
44 Sonstiges: zaubertraenke, /room/orakel.c
45 Verwandt: FindPotion(), RemoveKnownPotion(), AddKnownPotion()
46 Props: P_POTIONROOMS, P_KNOWN_POTIONROOMS
47
486.Feb 2016 Gloinson