This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,storage_main_update].cs2
50 lines (50 loc) · 1.61 KB
/
[proc,storage_main_update].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
// 2146
[proc,storage_main_update](enum $enum0, component $component1, obj $obj2, string $text0, int $int3, int $int4)
def_int $int5 = 0;
def_namedobj $namedobj6 = null;
$int5, $namedobj6 = ~storage_getstored($enum0, $obj2);
def_int $colour7 = 0xbb0000;
if ($int5 > 0) {
$colour7 = 0x20df20;
}
if (cc_find($component1, $int4) = ^true & .cc_find($component1, calc($int4 + 1)) = ^true) {
cc_settext($text0);
cc_setcolour($colour7);
.cc_setcolour($colour7);
.cc_settext("<tostring($int5)>/<tostring($int3)>");
}
if (cc_find($component1, calc($int4 + 2)) = ^true) {
cc_setobject_nonum($namedobj6, $int5);
}
if_setopbase("<col=ff9040><oc_name($namedobj6)></col>", $component1);
if_clearops($component1);
if_setop(10, "Examine", $component1);
if ($int3 <= 1) {
if_setop(1, "Remove", $component1);
} else {
if (oc_cert($namedobj6) ! $namedobj6) {
if_setop(9, "Banknotes", $component1);
}
switch_int (~get_selected_quantity($enum0)) {
case 0 :
if_setop(1, "Remove-1", $component1);
if_setop(2, "Remove-5", $component1);
if_setop(3, "Remove-X", $component1);
if_setop(4, "Remove-All", $component1);
case 1 :
if_setop(1, "Remove-5", $component1);
if_setop(2, "Remove-1", $component1);
if_setop(3, "Remove-X", $component1);
if_setop(4, "Remove-All", $component1);
case 3 :
if_setop(1, "Remove-X", $component1);
if_setop(2, "Remove-1", $component1);
if_setop(3, "Remove-5", $component1);
if_setop(4, "Remove-All", $component1);
case 2 :
if_setop(1, "Remove-All", $component1);
if_setop(2, "Remove-1", $component1);
if_setop(3, "Remove-5", $component1);
if_setop(4, "Remove-X", $component1);
}
}