parent
4706a4a059
commit
3e2e17231e
31
game/game.js
31
game/game.js
|
@ -18488,14 +18488,31 @@
|
||||||
event.trigger('damageBegin4');
|
event.trigger('damageBegin4');
|
||||||
"step 4"
|
"step 4"
|
||||||
//moved changeHujia to changeHp
|
//moved changeHujia to changeHp
|
||||||
if(lib.config.background_audio){
|
if(!event.unreal) event.trigger('damageBegin5');
|
||||||
game.playAudio('effect','damage'+(num>1?'2':''));
|
if(['fire','thunder','ice'].contains(event.nature)){
|
||||||
}
|
if(player.hujia>0&&!player.hasSkillTag('nohujia')&&event.nature!='ice'){
|
||||||
game.broadcast(function(num){
|
game.broadcastAll(function(num){
|
||||||
if(lib.config.background_audio){
|
if(lib.config.background_audio) game.playAudio('effect','hujia_damage_'+event.nature+(num>1?'2':''));
|
||||||
game.playAudio('effect','damage'+(num>1?'2':''));
|
},num);
|
||||||
}
|
}
|
||||||
},num);
|
else{
|
||||||
|
game.broadcastAll(function(num){
|
||||||
|
if(lib.config.background_audio) game.playAudio('effect','damage_'+event.nature+(num>1?'2':''));
|
||||||
|
},num);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(player.hujia>0&&!player.hasSkillTag('nohujia')){
|
||||||
|
game.broadcastAll(function(num){
|
||||||
|
if(lib.config.background_audio) game.playAudio('effect','hujia_damage'+(num>1?'2':''));
|
||||||
|
},num);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
game.broadcastAll(function(num){
|
||||||
|
if(lib.config.background_audio) game.playAudio('effect','damage'+(num>1?'2':''));
|
||||||
|
},num);
|
||||||
|
}
|
||||||
|
}
|
||||||
var str=event.unreal?'视为受到了':'受到了';
|
var str=event.unreal?'视为受到了':'受到了';
|
||||||
if(source) str+='来自<span class="bluetext">'+(source==player?'自己':get.translation(source))+'</span>的';
|
if(source) str+='来自<span class="bluetext">'+(source==player?'自己':get.translation(source))+'</span>的';
|
||||||
str+=get.cnNumber(num)+'点';
|
str+=get.cnNumber(num)+'点';
|
||||||
|
|
Loading…
Reference in New Issue