@@ -41,6 +41,10 @@ public class ClientScriptRunner extends Node {
41
41
public static InvokedScript [] invokedScripts = new InvokedScript [50 ];
42
42
public static int invokedScriptIndex = 0 ;
43
43
public static LinkedList clientScriptRunnerCache = new LinkedList ();
44
+ public static Calendar aCalendar279 = Calendar .getInstance ();
45
+ public static boolean [] aBooleanArray548 = new boolean []{true , true , true , true , true , true , true , true , true , true , true , true , true , true , true , true , true , true , true , true , true , false , true , false , false };
46
+ public static GameInterface aGameInterface_1887 ;
47
+ public static int [] anIntArray1847 = new int [2000 ];
44
48
private static String [] aClass1Array2964 = new String []{"Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" };
45
49
46
50
public int [] opcodes ;
@@ -486,11 +490,11 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
486
490
continue ;
487
491
}
488
492
if (scriptOpcode == 42 ) {
489
- scriptIntValues [intValueIndex ++] = MovedStatics . anIntArray1847 [intOperands [scriptIndex ]];
493
+ scriptIntValues [intValueIndex ++] = anIntArray1847 [intOperands [scriptIndex ]];
490
494
continue ;
491
495
}
492
496
if (scriptOpcode == 43 ) {
493
- MovedStatics . anIntArray1847 [intOperands [scriptIndex ]] = scriptIntValues [--intValueIndex ];
497
+ anIntArray1847 [intOperands [scriptIndex ]] = scriptIntValues [--intValueIndex ];
494
498
continue ;
495
499
}
496
500
}
@@ -521,10 +525,10 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
521
525
if (bool ) {
522
526
MovedStatics .aGameInterface_2116 = childInterface ;
523
527
} else {
524
- MovedStatics . aGameInterface_1887 = childInterface ;
528
+ aGameInterface_1887 = childInterface ;
525
529
}
526
530
} else if (scriptOpcode == 101 ) {
527
- GameInterface gameInterface = !bool ? MovedStatics . aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
531
+ GameInterface gameInterface = !bool ? aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
528
532
GameInterface childInterface = GameInterface .getInterface (gameInterface .parentId );
529
533
childInterface .children [BitUtils .bitWiseAND (gameInterface .id , 32767 )] = null ;
530
534
} else {
@@ -540,7 +544,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
540
544
gameInterface = GameInterface .getInterface (scriptIntValues [--intValueIndex ]);
541
545
scriptOpcode -= 1000 ;
542
546
} else {
543
- gameInterface = bool ? MovedStatics .aGameInterface_2116 : MovedStatics . aGameInterface_1887 ;
547
+ gameInterface = bool ? MovedStatics .aGameInterface_2116 : aGameInterface_1887 ;
544
548
}
545
549
if (scriptOpcode == 1000 ) {
546
550
intValueIndex -= 2 ;
@@ -561,7 +565,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
561
565
} else if (scriptOpcode >= 1100 && scriptOpcode < 1200 || scriptOpcode >= 2100 && scriptOpcode < 2200 ) {
562
566
GameInterface gameInterface ;
563
567
if (scriptOpcode < 2000 ) {
564
- gameInterface = !bool ? MovedStatics . aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
568
+ gameInterface = !bool ? aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
565
569
} else {
566
570
gameInterface = GameInterface .getInterface (scriptIntValues [--intValueIndex ]);
567
571
scriptOpcode -= 1000 ;
@@ -633,7 +637,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
633
637
if (bool ) {
634
638
MovedStatics .aGameInterface_2116 = gameInterface .children [i_28_ ];
635
639
} else {
636
- MovedStatics . aGameInterface_1887 = gameInterface .children [i_28_ ];
640
+ aGameInterface_1887 = gameInterface .children [i_28_ ];
637
641
}
638
642
}
639
643
} else if (scriptOpcode == 1401 ) {
@@ -649,7 +653,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
649
653
if (bool ) {
650
654
MovedStatics .aGameInterface_2116 = gameInterface ;
651
655
} else {
652
- MovedStatics . aGameInterface_1887 = gameInterface ;
656
+ aGameInterface_1887 = gameInterface ;
653
657
}
654
658
}
655
659
} else {
@@ -668,12 +672,12 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
668
672
if (bool ) {
669
673
MovedStatics .aGameInterface_2116 = gameInterface_35_ ;
670
674
} else {
671
- MovedStatics . aGameInterface_1887 = gameInterface_35_ ;
675
+ aGameInterface_1887 = gameInterface_35_ ;
672
676
}
673
677
}
674
678
}
675
679
} else if (scriptOpcode < 1600 ) {
676
- GameInterface gameInterface = bool ? MovedStatics .aGameInterface_2116 : MovedStatics . aGameInterface_1887 ;
680
+ GameInterface gameInterface = bool ? MovedStatics .aGameInterface_2116 : aGameInterface_1887 ;
677
681
if (scriptOpcode == 1500 ) {
678
682
scriptIntValues [intValueIndex ++] = gameInterface .currentX ;
679
683
} else if (scriptOpcode == 1501 ) {
@@ -746,7 +750,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
746
750
int i_44_ = scriptIntValues [intValueIndex + 1 ];
747
751
method406 (0 , i_44_ , i_43_ );
748
752
} else if (scriptOpcode == 3002 ) {
749
- GameInterface gameInterface = !bool ? MovedStatics . aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
753
+ GameInterface gameInterface = !bool ? aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
750
754
if (MovedStatics .lastContinueTextWidgetId == -1 ) {
751
755
GameInterface .method517 (gameInterface .id & 0x7fff , gameInterface .parentId );
752
756
MovedStatics .lastContinueTextWidgetId = gameInterface .id ;
@@ -755,7 +759,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
755
759
if (scriptOpcode != 3003 ) {
756
760
break ;
757
761
}
758
- GameInterface gameInterface = bool ? MovedStatics .aGameInterface_2116 : MovedStatics . aGameInterface_1887 ;
762
+ GameInterface gameInterface = bool ? MovedStatics .aGameInterface_2116 : aGameInterface_1887 ;
759
763
int i_45_ = scriptIntValues [--intValueIndex ];
760
764
method406 (0x7fff & gameInterface .id , i_45_ , gameInterface .parentId );
761
765
}
@@ -885,10 +889,10 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
885
889
} else if (scriptOpcode == 4104 ) {
886
890
int i_78_ = scriptIntValues [--intValueIndex ];
887
891
long l = 86400000L * ((long ) i_78_ + 11745L );
888
- MovedStatics . aCalendar279 .setTime (new Date (l ));
889
- int i_79_ = MovedStatics . aCalendar279 .get (Calendar .DATE );
890
- int i_80_ = MovedStatics . aCalendar279 .get (Calendar .MONTH );
891
- int i_81_ = MovedStatics . aCalendar279 .get (Calendar .YEAR );
892
+ aCalendar279 .setTime (new Date (l ));
893
+ int i_79_ = aCalendar279 .get (Calendar .DATE );
894
+ int i_80_ = aCalendar279 .get (Calendar .MONTH );
895
+ int i_81_ = aCalendar279 .get (Calendar .YEAR );
892
896
scriptStringValues [stringValueIndex ++] = i_79_ + "-" + aClass1Array2964 [i_80_ ] + "-" + i_81_ ;
893
897
} else if (scriptOpcode == 4105 ) {
894
898
stringValueIndex -= 2 ;
@@ -941,7 +945,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
941
945
}
942
946
}
943
947
} else {
944
- GameInterface gameInterface = bool ? MovedStatics .aGameInterface_2116 : MovedStatics . aGameInterface_1887 ;
948
+ GameInterface gameInterface = bool ? MovedStatics .aGameInterface_2116 : aGameInterface_1887 ;
945
949
if (scriptOpcode == 1600 ) {
946
950
scriptIntValues [intValueIndex ++] = gameInterface .scrollWidth ;
947
951
} else {
@@ -957,7 +961,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
957
961
gameInterface = GameInterface .getInterface (scriptIntValues [--intValueIndex ]);
958
962
scriptOpcode -= 1000 ;
959
963
} else {
960
- gameInterface = !bool ? MovedStatics . aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
964
+ gameInterface = !bool ? aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
961
965
}
962
966
if (scriptOpcode >= 1300 && scriptOpcode <= 1309 || scriptOpcode >= 1314 && scriptOpcode <= 1317 ) {
963
967
String class1 = scriptStringValues [--stringValueIndex ];
@@ -1036,7 +1040,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
1036
1040
} else {
1037
1041
GameInterface gameInterface ;
1038
1042
if (scriptOpcode < 2000 ) {
1039
- gameInterface = !bool ? MovedStatics . aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
1043
+ gameInterface = !bool ? aGameInterface_1887 : MovedStatics .aGameInterface_2116 ;
1040
1044
} else {
1041
1045
gameInterface = GameInterface .getInterface (scriptIntValues [--intValueIndex ]);
1042
1046
scriptOpcode -= 1000 ;
@@ -1068,7 +1072,7 @@ public static void runClientScripts(Object[] listeners, int arg1, int arg2, Game
1068
1072
if (scriptOpcode != 1203 ) {
1069
1073
break ;
1070
1074
}
1071
- GameInterface desiredInterface = !bool ? MovedStatics .aGameInterface_2116 : MovedStatics . aGameInterface_1887 ;
1075
+ GameInterface desiredInterface = !bool ? MovedStatics .aGameInterface_2116 : aGameInterface_1887 ;
1072
1076
gameInterface .anInt2738 = desiredInterface .id ;
1073
1077
}
1074
1078
}
0 commit comments