-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path[proc,deathkeep_left_keepitem].cs2
More file actions
28 lines (28 loc) · 1.13 KB
/
[proc,deathkeep_left_keepitem].cs2
File metadata and controls
28 lines (28 loc) · 1.13 KB
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
// 977
[proc,deathkeep_left_keepitem](obj $obj0, int $int1, obj $obj2, int $int3, int $int4, int $int5, int $int6, int $int7)(int, int, int)
cc_create(interface_4:6, ^iftype_graphic, $int6);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
def_int $int8 = calc(17 + $int7 / $int3 * (32 + $int4));
cc_setposition(calc($int5 + $int7 % $int3 * (36 + $int4)), $int8, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setobject($obj0, $int1);
cc_setop(1, "Check");
cc_setopbase("<col=ff9040><oc_name($obj0)></col>");
def_string $mes0 = "";
if ($obj2 = burnt_fish_343) {
if ($int1 > 1) {
$mes0 = "<~tostring_spacer($int1, ",")> x <oc_name($obj0)>: You'll keep a downgraded version of these items.";
} else {
$mes0 = "<oc_name($obj0)>: You'll keep a downgraded version of this item.";
}
cc_setoutline(2);
} else {
if ($int1 > 1) {
$mes0 = "<~tostring_spacer($int1, ",")> x <oc_name($obj0)>: You'll always keep these items.";
} else {
$mes0 = "<oc_name($obj0)>: You'll always keep this item.";
}
cc_setoutline(1);
}
cc_setonop("deathkeep_opitem(event_com, event_comsubid, $mes0)");
return(calc($int6 + 1), $int8, calc($int7 + 1));