99import com .laytonsmith .abstraction .StaticLayer ;
1010import com .laytonsmith .annotations .api ;
1111import com .laytonsmith .annotations .hide ;
12+ import com .laytonsmith .annotations .noboilerplate ;
1213import com .laytonsmith .commandhelper .BukkitDirtyRegisteredListener ;
1314import com .laytonsmith .core .CHVersion ;
1415import com .laytonsmith .core .Static ;
@@ -479,10 +480,15 @@ public Construct exec(Target t, Environment environment, Construct... args) thro
479480
480481 @ api
481482 @ hide ("This is an easter egg" )
483+ @ noboilerplate
482484 public static class norway extends DummyFunction {
483485
484486 @ Override
485487 public Construct exec (Target t , Environment environment , Construct ... args ) throws ConfigRuntimeException {
488+ Function color = new Echoes .color ();
489+ String red = color .exec (t , environment , args .length == 3 ? args [0 ] : new CString ("RED" , t )).val ();
490+ String white = color .exec (t , environment , args .length == 3 ? args [1 ] : new CString ("WHITE" , t )).val ();
491+ String blue = color .exec (t , environment , args .length == 3 ? args [2 ] : new CString ("BLUE" , t )).val ();
486492 int multiplier = 2 ;
487493 char c = '=' ;
488494 String one = multiply (c , 1 * multiplier );
@@ -493,20 +499,25 @@ public Construct exec(Target t, Environment environment, Construct... args) thro
493499 String thirteen = multiply (c , 13 * multiplier );
494500 String twentytwo = multiply (c , 22 * multiplier );
495501 for (int i = 0 ; i < 6 ; ++i ){
496- System .out .println (TermColors . RED + six + TermColors . WHITE + one + TermColors . BLUE + two + TermColors . WHITE + one + TermColors . RED + twelve + TermColors .RESET );
502+ System .out .println (Static . MCToANSIColors ( red + six + white + one + blue + two + white + one + red + twelve ) + TermColors .RESET );
497503 }
498- System .out .println (TermColors . WHITE + seven + TermColors . BLUE + two + TermColors . WHITE + thirteen + TermColors .RESET );
504+ System .out .println (Static . MCToANSIColors ( white + seven + blue + two + white + thirteen ) + TermColors .RESET );
499505 for (int i = 0 ; i < 2 ; ++i ){
500- System .out .println (TermColors . BLUE + twentytwo + TermColors .RESET );
506+ System .out .println (Static . MCToANSIColors ( blue + twentytwo ) + TermColors .RESET );
501507 }
502- System .out .println (TermColors . WHITE + seven + TermColors . BLUE + two + TermColors . WHITE + thirteen + TermColors .RESET );
508+ System .out .println (Static . MCToANSIColors ( white + seven + blue + two + white + thirteen ) + TermColors .RESET );
503509 for (int i = 0 ; i < 6 ; ++i ){
504- System .out .println (TermColors . RED + six + TermColors . WHITE + one + TermColors . BLUE + two + TermColors . WHITE + one + TermColors . RED + twelve + TermColors .RESET );
510+ System .out .println (Static . MCToANSIColors ( red + six + white + one + blue + two + white + one + red + twelve ) + TermColors .RESET );
505511 }
506512
507513 return CVoid .VOID ;
508514 }
509515
516+ @ Override
517+ public Integer [] numArgs () {
518+ return new Integer []{0 , 3 };
519+ }
520+
510521 public static String multiply (char c , int times ){
511522 StringBuilder b = new StringBuilder ();
512523 for (int i = 0 ; i < times ; ++i ){
0 commit comments