getItem playSound
This commit is contained in:
parent
458fa257bc
commit
62cfd784dd
@ -1262,7 +1262,6 @@ events.prototype.getNextItem = function() {
|
||||
////// 获得某个物品 //////
|
||||
events.prototype.getItem = function (itemId, itemNum, itemX, itemY, callback) {
|
||||
itemNum=itemNum||1;
|
||||
core.playSound('item.mp3');
|
||||
var itemCls = core.material.items[itemId].cls;
|
||||
core.items.getItemEffect(itemId, itemNum);
|
||||
core.removeBlock(itemX, itemY);
|
||||
|
||||
@ -349,6 +349,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
},
|
||||
"afterGetItem": function(itemId,x,y,callback) {
|
||||
// 获得一个道具后触发的事件
|
||||
core.playSound('item.mp3');
|
||||
|
||||
var todo = [];
|
||||
if (core.isset(x) && core.isset(y)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user