-
Notifications
You must be signed in to change notification settings - Fork 0
/
FairDaronRewards.d
66 lines (55 loc) · 1.73 KB
/
FairDaronRewards.d
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
/*
In unmodded game, you can donate a total of 1000 gold to Daron,
but it doesn't make sense to donate more than 50 gold at once,
as you'll reach the limit sooner and the reward for each donation
is the same regardless of the gold given at one time anyway.
My script alteration makes Daron rewards more fair:
- Donating 200 gold rewards the same as donating 50 gold four times.
- Donating 100 gold rewards the same as donating 50 gold twice.
Now you can try out suboptimal donation options without worry and hear different responses.
Let Innos light shine upon you.
*/
META
{
Parser = Game
MergeMode = TRUE
};
var int daron_spende_now;
func void b_daronsegen()
{
daron_spende_now = daron_spende_now - 50;
b_daronsegen_old();
if (daron_spende_now > 0) {
// print messages
var string rewardMsg; rewardMsg = Par_GetSymbolValueString(
Par_GetParserID("Game"),
Par_GetSymbolID(
Par_GetParserID("Game"),
"b_daronsegen_old.concattext"
)
);
if (daron_spende_now == 150) {
PrintScreen(rewardMsg,-1,39,FONT_SCREEN,2);
} else if (daron_spende_now == 100) {
PrintScreen(rewardMsg,-1,42,FONT_SCREEN,2);
} else if (daron_spende_now == 50) {
PrintScreen(rewardMsg,-1,45,FONT_SCREEN,2);
};
b_daronsegen();
};
};
func void dia_daron_spende_50()
{
daron_spende_now = 50;
dia_daron_spende_50_old();
};
func void dia_daron_spende_100()
{
daron_spende_now = 100;
dia_daron_spende_100_old();
};
func void dia_daron_spende_200()
{
daron_spende_now = 200;
dia_daron_spende_200_old();
};