-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,combat_interface_sp_redraw].cs2
51 lines (51 loc) · 2.05 KB
/
[proc,combat_interface_sp_redraw].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
// 187
[proc,combat_interface_sp_redraw](component $component0)
def_int $int1 = 0;
if (map_members = ^true | %varbit5314 = 1) {
$int1 = ~script3648(inv_getobj(worn, 3));
}
if ($int1 <= 0) {
if_sethide(true, interface_593:35);
if_setsize(190, 28, ^setsize_abs, ^setsize_abs, interface_593:2);
return;
}
if (~on_mobile = true) {
if_setsize(190, 16, ^setsize_abs, ^setsize_abs, interface_593:2);
}
def_int $int2 = 0;
if (if_gethide(interface_593:35) = true) {
$int2 = 1;
}
if_sethide(false, interface_593:35);
if (%var301 > 0) {
if_setcolour(^yellow, interface_593:40);
} else {
if_setcolour(0x000010, interface_593:40);
}
def_int $int3 = %var300;
if ($int3 < 0) {
$int3 = 0;
}
if_settext("Special Attack: <tostring(calc($int3 / 10))>%", interface_593:40);
~combat_interface_sp_updatebar($component0, $int3, $int2);
if ($int3 >= $int1) {
if_setcolour(0x397d3b, interface_593:39);
} else {
if_setcolour(0x00326b, interface_593:39);
}
~options_button_off(interface_593:36, 0);
def_obj $obj4 = inv_getobj(worn, 3);
def_string $string0 = "<enum(obj, string, enum_1739, $obj4)> (<tostring(calc(~script3648($obj4) / 10))>%)";
switch_obj ($obj4) {
case dragon_hasta_22731, dragon_hasta_p_22734, dragon_hasta_p_22737, dragon_hasta_p_22740, dragon_hasta_kp_22743 :
$string0 = "<enum(obj, string, enum_1739, $obj4)> 5-100% ";
}
if (%varbit5712 = 0) {
if (($obj4 = dark_bow_11235 | $obj4 = dark_bow_20408 | $obj4 = dark_bow_12765 | $obj4 = dark_bow_12768 | $obj4 = dark_bow_12767) & (inv_getobj(worn, 13) = dragon_arrow_11212 | inv_getobj(worn, 13) = dragon_arrow_p_11227 | inv_getobj(worn, 13) = dragon_arrow_p_11228 | inv_getobj(worn, 13) = dragon_arrow_p_11229)) {
$string0 = "Descent of Dragons: Deal a double attack with dragon arrows that inflicts up to 50% more damage (minimum damage of 8 per hit). (<tostring(calc(~script3648($obj4) / 10))>%)";
}
if_setonmouserepeat("tooltip_mouserepeat(event_com, -1, interface_593:42, $string0, 25, 160)", interface_593:35);
if_setonmouseleave("deltooltip(interface_593:42)", interface_593:35);
} else {
if_setonmouserepeat(null, interface_593:35);
}