-
Notifications
You must be signed in to change notification settings - Fork 0
/
eichenwald2.c
191 lines (167 loc) · 4.28 KB
/
eichenwald2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// Verlies - ein Adventure im Retrodesign
//
// Copyright (C) 2018-2022 Heiko Wolf
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License As published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY Or FITNESS For A PARTICULAR PURPOSE. See the
// GNU General Public License For more details.
//
// You should have received a copy of the GNU General Public License along
// With this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// Kontakt: projekte@kabelmail.net
//#pragma bank=17
#include "eichenwald2.h"
#include "feensee.h"
#include "engine.h"
#include "locations.h"
#include "truhen.h"
#include "npc.h"
#include "text.h"
#include "other.h"
#include "schilder.h"
#include "umgebung.h"
#include "lvlstatus.h"
#include "portale.h"
#include "daten/lvl/lvldateichenwald.h"
#include "daten/lvl/lvldatalterbaum.h"
#include "daten/txt/locations/locations.h"
#include "daten/txt/schilder/schildertxt.h"
#include "daten/txt/npcs/ranartxt.h"
#include "daten/tilesets/tilesets.h"
///Ablauf Raum 138
void p_lvl138 (void) __banked
{
p_portal (194);
if (v_smk == 76) p_provianthaendler ();
if (v_smk == 184) p_kraeuterhandler ();
if (v_smk == 86)
{
if (v_questen [0] == 9)
{
p_engine_set_txt (ranartxt1);
p_engine_down ();
p_engine_set_txt (ranartxt2);
p_engine_down ();
p_engine_set_txt (ranartxt3);
p_engine_down ();
p_engine_set_txt (ranartxt4);
p_engine_down ();
p_engine_set_txt (ranartxt5);
p_engine_A ();
p_engine_after_txt ();
v_questen [0] = 10;
}
else if ((v_questen [0] == 10) || (v_questen [0] > 12))
{
p_engine_set_txt (ranartxt5);
p_engine_A ();
p_engine_after_txt ();
}
else if (v_questen [0] == 12)
{
p_engine_set_txt (ranartxt6);
p_engine_down ();
p_engine_set_txt (ranartxt7);
p_engine_down ();
p_engine_set_txt (ranartxt5);
p_engine_A ();
p_engine_after_txt ();
v_questen [0] = 13;
}
}
if (v_smk == 6)
{
p_engine_loadMap (v_lvl136, BANK_18, BANK_17);
p_engine_changeLvl (136, 64, 120);
p_gui_show_location (leichenwald);
}
}
///Ablauf Raum 139
void p_lvl139 (void) __banked
{
if (v_smk == 108)
{
p_engine_loadMap (v_lvl136, BANK_18, BANK_17);
p_engine_changeLvl (136, 144, 72);
}
else if (v_smk == 124)
{
p_engine_loadMap (v_lvl142, BANK_18, BANK_17);
p_engine_changeLvl (142, 16, 72);
}
}
///Ablauf Raum 140
void p_lvl140 (void) __banked
{
if (v_smk == 108)
{
p_engine_loadMap (v_lvl135, BANK_18, BANK_17);
p_engine_changeLvl (135, 144, 72);
}
else if (v_smk == 52)
{
p_engine_loadMap (v_lvl141, BANK_18, BANK_17);
p_engine_changeLvl (141, 16, 40);
}
}
///Ablauf Raum 141
void p_lvl141 (void) __banked
{
p_npc_heiler (84);
if (v_smk == 36)
{
p_engine_loadMap (v_lvl140, BANK_18, BANK_17);
p_engine_changeLvl (140, 144, 40);
}
else if (v_smk == 224)
{
p_engine_loadMap (v_lvl142, BANK_18, BANK_17);
p_engine_changeLvl (142, 80, 24);
}
}
///Ablauf Raum 142
void p_lvl142 (void) __banked
{
p_schild (192, schildtxt7);
if (v_smk == 8)
{
p_engine_loadMap (v_lvl141, BANK_18, BANK_17);
p_engine_changeLvl (141, 80, 120);
}
else if (v_smk == 108)
{
p_engine_loadMap (v_lvl139, BANK_18, BANK_17);
p_engine_changeLvl (139, 144, 72);
}
else if (v_smk == 224)
{
p_engine_loadMap (v_lvl143, BANK_18, BANK_17);
p_engine_changeLvl (143, 80, 24);
}
else if (v_smk == 124)
{
p_engine_loadTileset (BANK_2, 4, 33, altebaum, BANK_17);
p_engine_loadMap (v_lvl145, BANK_18, BANK_17);
p_engine_changeLvl (145, 16, 72);
p_gui_show_location (laltebaum);
v_region = 8;
}
}
///Ablauf Raum 143
void p_lvl143 (void) __banked
{
p_truhe_gold (98, 41, 1);
if (v_smk == 8)
{
p_engine_loadMap (v_lvl142, BANK_18, BANK_17);
p_engine_changeLvl (142, 80, 120);
}
}