加入榨汁机 冰棍盒,炒冰盒 厨具架小bug
This commit is contained in:
1 parent
a7b56aec7d
commit
9d12baf1b2
25 files changed
+354
-227
No files matched your search
+6
-2
@@ -270,7 +270,7 @@ class ShousiService(BlueFoxServerSystem):
|
||||
self.replaceBlock(pos, dim, recipe["target"], playerId)
|
||||
# 递减取走: 以掉落物形式返还卷寿司
|
||||
if recipe.get("drop"):
|
||||
self.dropItem(dim, pos, recipe["drop"])
|
||||
self.dropItem(dim, pos, recipe["drop"], playerId=playerId)
|
||||
|
||||
# ============================================================================
|
||||
# 四、切块(手持菜刀右键卷寿司两次 -> 寿司块(三个))
|
||||
@@ -301,7 +301,11 @@ class ShousiService(BlueFoxServerSystem):
|
||||
# 六、工具方法:以掉落物形式生成物品(递减取走返还)
|
||||
# ============================================================================
|
||||
|
||||
def dropItem(self, dim, pos, itemName, count=1, aux=0):
|
||||
def dropItem(self, dim, pos, itemName, count=1, aux=0, playerId=None):
|
||||
if playerId is not None:
|
||||
# 任务一: 玩家主动获得 -> 统一优先级(同类合并->主手->背包->掉落)
|
||||
self.giveItemToPlayer(playerId, itemName, count, pos, dim, aux=aux)
|
||||
return
|
||||
try:
|
||||
itemDict = {"itemName": itemName, "count": count, "auxValue": aux}
|
||||
self.CreateEngineItemEntity(itemDict, dim, (pos[0], pos[1] + 0.5, pos[2]))
|
||||
|
||||
Reference in new issue
Block a user