diff --git a/game/game.js b/game/game.js index 3b6f3af9e..9b47a5ee2 100644 --- a/game/game.js +++ b/game/game.js @@ -21605,7 +21605,7 @@ next.setContent('chooseToGuanxing'); return next; } - $throwEmotion(target,name){ + $throwEmotion(target,name,rotate){ game.addVideo('throwEmotion',this,[target.dataset.position,name]); var getLeft=function(player){ if(player==game.me&&!ui.fakeme&&!ui.chess) return player.getLeft()+player.node.avatar.offsetWidth/2; @@ -21626,6 +21626,7 @@ var top2=target.getTop()+target.offsetHeight/3-height; emotion.style['z-index']=10; emotion.style.transform='translateY('+(top2-top)+'px) translateX('+(left2-left)+'px)'; + if(['egg','flower','shoe'].contains(name)||rotate) emotion.firstElementChild.style.transform='rotate(1440deg)'; if(lib.config.background_audio) game.playAudio('effect','throw_'+name+get.rand(1,2)); setTimeout(function(){ emotion.innerHTML=('