File tree Expand file tree Collapse file tree
src/chat/interface/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -631,7 +631,8 @@ com.cheeseStorm = function () {
631631 element : "img" ,
632632 src : "images/commands/cheese.png" ,
633633 style : {
634- height : "32px" ,
634+ height : "64px" ,
635+ transform : `rotate(${ Math . random ( ) * 45 * 2 - 45 } deg)` ,
635636 } ,
636637 } ,
637638 ] ,
@@ -653,18 +654,37 @@ com.cheeseStorm = function () {
653654 }
654655 ) ;
655656 startAnimation . onfinish = function ( ) {
657+ var clickable = true ;
656658 var timeout = setTimeout ( ( ) => {
657- cheeseDiv . remove ( ) ;
659+ clickable = false ;
660+ cheeseDiv . children [ 0 ] . animate (
661+ [
662+ { } ,
663+ {
664+ scale : 0 ,
665+ opacity : 0 ,
666+ } ,
667+ ] ,
668+ {
669+ duration : 100 ,
670+ easing : "ease-out" ,
671+ }
672+ ) . onfinish = ( ) => {
673+ cheeseDiv . remove ( ) ;
674+ } ;
658675 } , 2500 ) ;
659676 cheeseDiv . addEventListener ( "click" , ( ) => {
677+ if ( ! clickable ) {
678+ return ;
679+ }
660680 cheeseDiv . style . pointerEvents = "none" ;
661681 clearTimeout ( timeout ) ;
662682 elements . setInnerJSON ( cheeseDiv , [
663683 {
664684 element : "span" ,
665685 style : {
666686 fontFamily : "PressStart2PRegular" ,
667- fontSize : "10px " ,
687+ fontSize : "20px " ,
668688 fontWeight : "bold" ,
669689 } ,
670690 textContent : "+1 Cheese" ,
Original file line number Diff line number Diff line change 1- {"timestamp" :" 1761237581947 " }
1+ {"timestamp" :" 1761238376626 " }
You can’t perform that action at this time.
0 commit comments