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