-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,fossil_pool_init].cs2
60 lines (60 loc) · 3.32 KB
/
[clientscript,fossil_pool_init].cs2
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
// 2013
[clientscript,fossil_pool_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13)
if_setobject_nonum(small_fossilised_limbs_21570, 0, $component0);
if_setobject_nonum(medium_fossilised_limbs_21580, 0, $component2);
if_setobject_nonum(large_fossilised_limbs_21600, 0, $component4);
if_setobject_nonum(rare_fossilised_limbs_21610, 0, $component8);
if_setobject_nonum(fossilised_roots_21590, 0, $component6);
if_setobject_nonum(unidentified_small_fossil_21562, 0, $component10);
def_int $int14 = calc(inv_total(inv, small_fossilised_limbs_21570) + inv_total(inv, small_fossilised_spine_21572) + inv_total(inv, small_fossilised_ribs_21574) + inv_total(inv, small_fossilised_pelvis_21576) + inv_total(inv, small_fossilised_skull_21578));
def_int $int15 = calc(inv_total(inv, medium_fossilised_limbs_21580) + inv_total(inv, medium_fossilised_spine_21582) + inv_total(inv, medium_fossilised_ribs_21584) + inv_total(inv, medium_fossilised_pelvis_21586) + inv_total(inv, medium_fossilised_skull_21588));
def_int $int16 = calc(inv_total(inv, large_fossilised_limbs_21600) + inv_total(inv, large_fossilised_spine_21602) + inv_total(inv, large_fossilised_ribs_21604) + inv_total(inv, large_fossilised_pelvis_21606) + inv_total(inv, large_fossilised_skull_21608));
def_int $int17 = calc(inv_total(inv, fossilised_roots_21590) + inv_total(inv, fossilised_stump_21592) + inv_total(inv, fossilised_branch_21594) + inv_total(inv, fossilised_leaf_21596) + inv_total(inv, fossilised_mushroom_21598));
def_int $int18 = calc(inv_total(inv, rare_fossilised_limbs_21610) + inv_total(inv, rare_fossilised_spine_21612) + inv_total(inv, rare_fossilised_ribs_21614) + inv_total(inv, rare_fossilised_pelvis_21616) + inv_total(inv, rare_fossilised_skull_21618));
def_int $total19 = inv_total(inv, unidentified_small_fossil_21562);
def_int $total20 = inv_total(inv, unidentified_medium_fossil_21564);
def_int $total21 = inv_total(inv, unidentified_large_fossil_21566);
def_int $total22 = inv_total(inv, unidentified_rare_fossil_21568);
def_int $int23 = calc($total19 + $total20 + $total21 + $total22);
def_int $total24 = inv_total(inv, calcite_21543);
def_int $total25 = inv_total(inv, pyrophosphite_21545);
if ($int14 > 0 | $total19 > 0) {
if_setcolour(^green, $component1);
} else {
if_setcolour(0xff981f, $component1);
}
if ($int15 > 0 | $total20 > 0) {
if_setcolour(^green, $component3);
} else {
if_setcolour(0xff981f, $component3);
}
if ($int16 > 0 | $total21 > 0) {
if_setcolour(^green, $component5);
} else {
if_setcolour(0xff981f, $component5);
}
if ($int18 > 0 | $total22 > 0) {
if_setcolour(^green, $component9);
} else {
if_setcolour(0xff981f, $component9);
}
if ($int17 > 0) {
if_setcolour(^green, $component7);
} else {
if_setcolour(0xff981f, $component7);
}
if ($total19 > 0 | $total20 > 0 | $total21 > 0 | $total22 > 0) {
if_setcolour(^green, $component11);
} else {
if_setcolour(0xff981f, $component11);
}
if ($total24 > 0) {
if_setcolour(^green, $component12);
} else {
if_setcolour(0xff981f, $component12);
}
if ($total25 > 0) {
if_setcolour(^green, $component13);
} else {
if_setcolour(0xff981f, $component13);
}