forked from bvschaik/julius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmission.c
48 lines (40 loc) · 1.03 KB
/
mission.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
#include "mission.h"
#include "city/data_private.h"
void city_mission_reset_save_start(void)
{
city_data.mission.start_saved_game_written = 0;
}
int city_mission_should_save_start(void)
{
if (!city_data.mission.start_saved_game_written) {
city_data.mission.start_saved_game_written = 1;
return 1;
} else {
return 0;
}
}
void city_mission_tutorial_set_fire_message_shown(int shown)
{
city_data.mission.tutorial_fire_message_shown = shown;
}
void city_mission_tutorial_set_disease_message_shown(int shown)
{
city_data.mission.tutorial_disease_message_shown = shown;
}
int city_mission_tutorial_show_disease_message(void)
{
if (!city_data.mission.tutorial_disease_message_shown) {
city_data.mission.tutorial_disease_message_shown = 1;
return 1;
} else {
return 0;
}
}
void city_mission_tutorial_add_senate(void)
{
city_data.mission.tutorial_senate_built++;
}
int city_mission_tutorial_has_senate(void)
{
return city_data.mission.tutorial_senate_built > 0;
}