Skip to content

Commit

Permalink
Include type in unnamed integer values
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterwb committed Mar 10, 2020
1 parent 5584da6 commit d80301f
Show file tree
Hide file tree
Showing 1,177 changed files with 5,484 additions and 5,484 deletions.
2 changes: 1 addition & 1 deletion scripts/[clientscript,1v1arena_clear_opbutton].cs2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 2711
[clientscript,1v1arena_clear_opbutton](component $component0, int $int1, int $int2)
if ((.cc_find($component0, $int1) = ^true) & (cc_find($component0, $int2) = ^true)) {
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
cc_setcolour(^red);
if_setonmouserepeat(null, $component0);
if_setonmouseleave(null, $component0);
Expand Down
2 changes: 1 addition & 1 deletion scripts/[clientscript,1v1arena_hud_button].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if ($int0 ! 1) {
return;
}
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
if (cc_find($component1, $int2) = ^true) {
cc_setcolour(^red);
if_setonmouserepeat(null, $component1);
Expand Down
2 changes: 1 addition & 1 deletion scripts/[clientscript,1v1arena_hud_toggle].cs2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 2716
[clientscript,1v1arena_hud_toggle](boolean $boolean0, component $component1, component $component2, component $component3)
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
~1v1arena_hud_toggle($boolean0, $component1, $component2, $component3);
10 changes: 5 additions & 5 deletions scripts/[clientscript,1v1arena_hud_transmit].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ $string0, $int25, $int26, $int27, $int28, $int29, $int30 = ~1v1arena_hud_buildpl
$string0, $int25, $int26, $int27, $int28, $int29, $int30 = ~1v1arena_hud_buildplayer(17, $int17, $string0, $int25, $int26, $int27, $int28, $int29, $int30);
$string0, $int25, $int26, $int27, $int28, $int29, $int30 = ~1v1arena_hud_buildplayer(18, $int18, $string0, $int25, $int26, $int27, $int28, $int29, $int30);
$string0, $int25, $int26, $int27, $int28, $int29, $int30 = ~1v1arena_hud_buildplayer(19, $int19, $string0, $int25, $int26, $int27, $int28, $int29, $int30);
~1v1arena_hud_buildarena(618:8, $int20);
~1v1arena_hud_buildarena(618:9, $int21);
~1v1arena_hud_buildarena(618:10, $int22);
~1v1arena_hud_buildarena(618:11, $int23);
~1v1arena_hud_buildarena(618:12, $int24);
~1v1arena_hud_buildarena(interface_618:8, $int20);
~1v1arena_hud_buildarena(interface_618:9, $int21);
~1v1arena_hud_buildarena(interface_618:10, $int22);
~1v1arena_hud_buildarena(interface_618:11, $int23);
~1v1arena_hud_buildarena(interface_618:12, $int24);
2 changes: 1 addition & 1 deletion scripts/[clientscript,1v1arena_review_init].cs2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 2707
[clientscript,1v1arena_review_init](component $component0, component $component1)
~1v1arena_review_draw($component1);
if_setoninvtransmit("1v1arena_review_draw($component1){207}", $component0);
if_setoninvtransmit("1v1arena_review_draw($component1){inv_207}", $component0);
2 changes: 1 addition & 1 deletion scripts/[clientscript,1v1arena_spectator_init].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def_enum $enum0 = ~toplevel_getcomponents;
if ($enum0 = null) {
return;
}
def_component $component1 = enum(component, component, $enum0, 161:8);
def_component $component1 = enum(component, component, $enum0, interface_161:8);
if ($component1 = null) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/[clientscript,abyssalsire_overseer].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def_enum $enum0 = ~toplevel_getcomponents;
if ($enum0 = null) {
return;
}
def_component $component1 = enum(component, component, $enum0, 161:3);
def_component $component1 = enum(component, component, $enum0, interface_161:3);
if ($component1 = null) {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/[clientscript,adventurepath_init].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if (%varbit9328 = 1) {
~adventurepath_task_init_op($component0, %var2357, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component18, $component17, $component19, $component20, $component21, $component22, $component23, $component24, $component25, $component26);
~adventurepath_change_page($component0, $component3, $component17, $component19, 1);
} else if (%varbit9328 = 2) {
$enum28 = enum(int, enum, 2620, %var2357);
$enum28 = enum(int, enum, enum_2620, %var2357);
if ($enum28 ! null) {
$int30 = enum_getoutputcount($enum28);
while ($int29 < $int30) {
$struct27 = enum(int, struct, $enum28, $int29);
if (($struct27 ! null) & (struct_param($struct27, 806) = %var2358)) {
if (($struct27 ! null) & (struct_param($struct27, param_806) = %var2358)) {
$int29 = $int30;
}
$int29 = calc($int29 + 1);
Expand Down
14 changes: 7 additions & 7 deletions scripts/[clientscript,adventurepath_item_init].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ if ($struct0 = null) {
if_close;
return;
}
def_component $component1 = 643:4;
def_component $component2 = 643:3;
def_component $component3 = 643:0;
def_component $component1 = interface_643:4;
def_component $component2 = interface_643:3;
def_component $component3 = interface_643:0;
if_setsize(500, 334, ^setsize_abs, ^setsize_abs, $component3);
if_setposition(6, 0, ^setpos_abs_left, ^setpos_abs_top, $component3);
cc_deleteall($component1);
Expand All @@ -15,9 +15,9 @@ cc_deleteall($component3);
def_int $int4 = 0;
def_int $int5 = 0;
def_int $int6 = 0;
def_enum $enum7 = struct_param($struct0, 820);
def_enum $enum8 = struct_param($struct0, 821);
def_enum $enum9 = struct_param($struct0, 833);
def_enum $enum7 = struct_param($struct0, param_820);
def_enum $enum8 = struct_param($struct0, param_821);
def_enum $enum9 = struct_param($struct0, param_833);
def_enum $enum10 = null;
def_enum $enum11 = null;
def_namedobj $namedobj12 = null;
Expand Down Expand Up @@ -76,4 +76,4 @@ if ($int4 > $int17) {
if_setposition(if_getx($component3), calc($int16 / 2), ^setpos_abs_left, ^setpos_abs_top, $component3);
if_sethide(true, $component1);
}
~stoneborder(643:1, "<struct_param($struct0, 828)> completion rewards", 0);
~stoneborder(interface_643:1, "<struct_param($struct0, param_828)> completion rewards", 0);
4 changes: 2 additions & 2 deletions scripts/[clientscript,adventurepath_set_info_transmit].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
if (%var2358 = 0) {
return;
}
def_enum $enum21 = enum(int, enum, 2620, %var2357);
def_enum $enum21 = enum(int, enum, enum_2620, %var2357);
if ($enum21 = null) {
return;
}
def_int $int22 = 0;
def_struct $struct23 = null;
def_int $int24 = struct_param($struct23, 806);
def_int $int24 = struct_param($struct23, param_806);
while ($int22 < enum_getoutputcount($enum21)) {
$struct23 = enum(int, struct, $enum21, $int22);
if (($struct23 ! null) & ($int24 = %var2358)) {
Expand Down
22 changes: 11 additions & 11 deletions scripts/[clientscript,adventurepath_voucher_init].cs2
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// 2840
[clientscript,adventurepath_voucher_init](int $int0, string $string0)
def_enum $enum1 = enum(int, enum, 2621, $int0);
def_enum $enum1 = enum(int, enum, enum_2621, $int0);
if ($enum1 = null) {
if_close;
mes("The voucher has already been used.");
return;
}
def_component $component2 = 643:4;
def_component $component3 = 643:3;
def_component $component4 = 643:0;
def_component $component2 = interface_643:4;
def_component $component3 = interface_643:3;
def_component $component4 = interface_643:0;
if_setsize(500, 334, ^setsize_abs, ^setsize_abs, $component4);
if_setposition(6, 0, ^setpos_abs_left, ^setpos_abs_top, $component4);
cc_deleteall($component2);
Expand All @@ -35,8 +35,8 @@ def_int $int17 = 0;
while ($int13 < $int9) {
$structarray0($int13) = enum(int, struct, $enum1, $int13);
if ($structarray0($int13) ! null) {
$enum11 = struct_param($structarray0($int13), 838);
$enum12 = struct_param($structarray0($int13), 840);
$enum11 = struct_param($structarray0($int13), param_838);
$enum12 = struct_param($structarray0($int13), param_840);
if (($enum11 ! null) & ($enum12 ! null)) {
if ($int14 = 0) {
cc_create($component3, ^iftype_text, $int10);
Expand All @@ -51,7 +51,7 @@ while ($int13 < $int9) {
$int10 = calc($int10 + 1);
$int17 = calc($int17 + 40);
}
$int10, $int16 = ~adventurepath_voucher_entry($int17, $component3, $int7, $int10, $enum11, $enum12, struct_param($structarray0($int13), 842), struct_param($structarray0($int13), 837), $int16, struct_param($structarray0($int13), 844));
$int10, $int16 = ~adventurepath_voucher_entry($int17, $component3, $int7, $int10, $enum11, $enum12, struct_param($structarray0($int13), param_842), struct_param($structarray0($int13), param_837), $int16, struct_param($structarray0($int13), param_844));
$int17 = calc($int17 + 88);
}
}
Expand All @@ -60,8 +60,8 @@ while ($int13 < $int9) {
$int13 = 0;
while ($int13 < $int9) {
if ($structarray0($int13) ! null) {
$enum11 = struct_param($structarray0($int13), 839);
$enum12 = struct_param($structarray0($int13), 841);
$enum11 = struct_param($structarray0($int13), param_839);
$enum12 = struct_param($structarray0($int13), param_841);
if (($enum11 ! null) & ($enum12 ! null)) {
if ($int15 = 0) {
cc_create($component3, ^iftype_text, $int10);
Expand All @@ -76,7 +76,7 @@ while ($int13 < $int9) {
$int10 = calc($int10 + 1);
$int17 = calc($int17 + 40);
}
$int10, $int16 = ~adventurepath_voucher_entry($int17, $component3, $int7, $int10, $enum11, $enum12, struct_param($structarray0($int13), 843), struct_param($structarray0($int13), 837), $int16, struct_param($structarray0($int13), 845));
$int10, $int16 = ~adventurepath_voucher_entry($int17, $component3, $int7, $int10, $enum11, $enum12, struct_param($structarray0($int13), param_843), struct_param($structarray0($int13), param_837), $int16, struct_param($structarray0($int13), param_845));
$int17 = calc($int17 + 88);
}
}
Expand All @@ -93,4 +93,4 @@ if ($int17 > $int6) {
if_setposition(if_getx($component4), calc($int8 / 2), ^setpos_abs_left, ^setpos_abs_top, $component4);
if_sethide(true, $component2);
}
~stoneborder(643:1, $string0, 0);
~stoneborder(interface_643:1, $string0, 0);
2 changes: 1 addition & 1 deletion scripts/[clientscript,agilityarena_rewards_hidelayer].cs2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 2032
[clientscript,agilityarena_rewards_hidelayer](boolean $boolean0, component $component1)
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
if_sethide($boolean0, $component1);
4 changes: 2 additions & 2 deletions scripts/[clientscript,aide_map_init].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if_setopbase("<col=ff9040>Tutors</col>", $component2);
cc_deleteall($component0);
cc_create($component0, ^iftype_model, 0);
cc_setsize(32, 32, ^setsize_abs, ^setsize_abs);
cc_setmodel(3062);
cc_setmodel(model_3062);
cc_setmodelangle(0, 0, 512, 68, 0, 1526);
cc_setmodelanim(646);
cc_setmodelanim(seq_646);
~aide_map_marker($component0);
if_setontimer("aide_map_marker($component0, cc_getid)", $component0);
2 changes: 1 addition & 1 deletion scripts/[clientscript,aide_map_tutors].cs2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 2040
[clientscript,aide_map_tutors](boolean $boolean0, component $component1, int $int2, component $component3)
if (cc_find($component1, $int2) = ^true) {
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
~aide_map_tutors($boolean0, $component3, $component1);
}
2 changes: 1 addition & 1 deletion scripts/[clientscript,arceuus_teletab_button_op].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
if ($int0 ! 1) {
return;
}
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
%varbit9363 = $int1;
~arceuus_teletab_redraw($component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15);
2 changes: 1 addition & 1 deletion scripts/[clientscript,arceuus_teletab_confirm_op].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if ($int0 ! 1) {
return;
}
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
~arceuus_teletab_confirm_draw(true, $string0, $component1);
if_setonmouserepeat(null, $component1);
if_setonmouseleave(null, $component1);
Expand Down
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankmain_depositall].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ if ($int3 ! 1) {
return;
}
if_setgraphic($graphic1, $component0);
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
if_setontimer("bankmain_depositall_end(event_com, $graphic2, calc(clientclock + 20))", $component0);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankmain_incinerator_close].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
if ($int0 ! 1) {
return;
}
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
cc_deleteall($component1);
if_sethide(true, $component1);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankmain_itemnote_op].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ if ($int0 ! 1) {
}
if (%varbit3958 ! $int3) {
%varbit3958 = $int3;
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
}
~bankmain_itemnote($component1, $component2);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankmain_quantity_op].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if ($int0 ! 1) {
return;
}
if (%varbit6590 ! $int6) {
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
}
%varbit6590 = $int6;
~bankmain_quantity_buttons($component1, $component2, $component3, $component4, $component5);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankmain_swapinsert_op].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ if ($int0 ! 1) {
}
if (%varbit3959 ! $int3) {
%varbit3959 = $int3;
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
}
~bankmain_swapinsert($component1, $component2);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankmain_switchtab].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if ($int12 ! 1) {
}
if (($int13 >= 0) & ($int13 <= 9)) {
if ($int13 ! %varbit4150) {
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
}
%varbit4150 = $int13;
~bankmain_build($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component14, $component15, $component16, $component17);
Expand Down
4 changes: 2 additions & 2 deletions scripts/[clientscript,bankmain_toggleplaceholders_op].cs2
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// 1269
[clientscript,bankmain_toggleplaceholders_op](int $int0, component $component1, int $int2)
if ($int0 = 10) {
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
return;
}
if ($int0 ! 1) {
return;
}
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
%varbit3755 = $int2;
~bankmain_toggleplaceholders($component1);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankmain_viewbuttons].cs2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 3275
[clientscript,bankmain_viewbuttons](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, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20)
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
~bankmain_viewbuttons($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankpin_button_op].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if (($int0 < 0) | ($int0 >= 10)) {
return;
}
sound_synth(1041, 1, 0);
sound_synth(synth_1041, 1, 0);
if ($int1 = 3) {
$int2 = calc($int2 + $int0);
resume_countdialog(tostring($int2));
Expand Down
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankpin_otherbutton].cs2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 686
[clientscript,bankpin_otherbutton](int $int0, 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, component $component14, component $component15, component $component16, component $component17)
sound_synth(1042, 1, 0);
sound_synth(synth_1042, 1, 0);
resume_countdialog(tostring($int0));
~bankpin_keypad_set(-1, -1, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17);
4 changes: 2 additions & 2 deletions scripts/[clientscript,bankside_init].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ while ($int8 < $int9) {
$int8 = calc($int8 + 1);
}
~bankside_build($component1, $component3, $component2, $component4, $component5);
if_setoninvtransmit("bankside_build($component1, $component3, $component2, $component4, $component5){inv, 516}", $component1);
if_setoninvtransmit("bankside_build($component1, $component3, $component2, $component4, $component5){inv, inv_516}", $component1);
if_setonvartransmit("bankside_build($component1, $component3, $component2, $component4, $component5){var304, var1666, var1141, var261, var262, var263}", $component1);
~bankside_lootingbag_draw($component6);
if_setoninvtransmit("bankside_lootingbag_draw($component6){516}", $component5);
if_setoninvtransmit("bankside_lootingbag_draw($component6){inv_516}", $component5);
~bankside_switchview($component1, $component5);
if_setonvartransmit("bankside_switchview(-1, $component1, $component5, -1){var115}", $component0);
if_setonop("bankside_switchview(event_opindex, $component1, $component5, 0)", $component7);
2 changes: 1 addition & 1 deletion scripts/[clientscript,bankside_switchview].cs2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 490
[clientscript,bankside_switchview](int $int0, component $component1, component $component2, int $int3)
if (($int0 = 1) & (($int3 = 1) | ($int3 = 0))) {
sound_synth(2266, 1, 0);
sound_synth(synth_2266, 1, 0);
%varbit4139 = $int3;
}
~bankside_switchview($component1, $component2);
14 changes: 7 additions & 7 deletions scripts/[clientscript,barbassault_turret_data].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ if (((($int0 <= 0) & ($int1 <= 0)) & ($int2 <= 0)) & ($int3 <= 0)) {
}
if_sethide(true, barbassault_turret:1);
if_sethide(false, barbassault_turret:2);
def_model $model5 = 20542;
def_model $model5 = model_20542;
if ($int0 > 0) {
$model5 = 20544;
$model5 = model_20544;
}
if_setmodel($model5, barbassault_turret:4);
if_setmodel($model5, barbassault_turret:11);
if_setmodel($model5, barbassault_turret:18);
if_setmodel($model5, barbassault_turret:25);
if ($int1 > 0) {
$model5 = 20545;
$model5 = model_20545;
} else {
$model5 = 20542;
$model5 = model_20542;
}
if_setmodel($model5, barbassault_turret:6);
if_setmodel($model5, barbassault_turret:13);
if_setmodel($model5, barbassault_turret:20);
if_setmodel($model5, barbassault_turret:27);
if ($int2 > 0) {
$model5 = 20543;
$model5 = model_20543;
} else {
$model5 = 20542;
$model5 = model_20542;
}
if_setmodel($model5, barbassault_turret:8);
if_setmodel($model5, barbassault_turret:15);
Expand All @@ -39,7 +39,7 @@ if_setmodel($model5, barbassault_turret:29);
if ($int3 > 0) {
$model5 = omega_egg_20572;
} else {
$model5 = 20542;
$model5 = model_20542;
}
if_setmodel($model5, barbassault_turret:32);
def_string $string0 = tostring($int0);
Expand Down
2 changes: 1 addition & 1 deletion scripts/[clientscript,barrows_nodnod].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
[clientscript,barrows_nodnod](component $component0, model $model1)
if_sethide(false, $component0);
if_setmodel($model1, $component0);
if_setmodelanim(2085, $component0);
if_setmodelanim(seq_2085, $component0);
if_setontimer("barrows_nodnodoff($component0, calc(clientclock + 120))", $component0);
4 changes: 2 additions & 2 deletions scripts/[clientscript,barrows_nodnodoff].cs2
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ if (clientclock < $int1) {
}
if_setontimer(null, $component0);
if_sethide(true, $component0);
if_setmodel(16238, $component0);
if_setmodelanim(3354, $component0);
if_setmodel(model_16238, $component0);
if_setmodelanim(seq_3354, $component0);
Loading

0 comments on commit d80301f

Please sign in to comment.