稻谷bug修复 提示删除

This commit is contained in:
wenhe committed 2026-09-29 16:25:50 +08:00
1 parent 344fad19ac
commit bd2ebfb154
43 files changed
+700 -846

No files matched your search

@@ -60,7 +60,7 @@ class ShousiService(BlueFoxServerSystem):
# 1) 基础组: 干海带 + 手持饭团右键 -> 干海带(加饭团), 消耗4个饭团
self.recipes[(NORI_0, RICE_BALL)] = {
"target": NORI_1, "consume": NORI_RICE_CONSUME,
"tip": "§a海苔上铺好了饭团",
"tip": None,
}
self.featureBlocks.add(NORI_0)
@@ -121,11 +121,11 @@ class ShousiService(BlueFoxServerSystem):
# 手握堆叠: 手持 手握X寿司(一个) 右键 -> (两个) -> (三个), 每级消耗1个
self.recipes[(g["nigiri1"], g["nigiri1"])] = {
"target": g["nigiri2"], "consume": STACK_CONSUME,
"tip": "§a堆叠成两个",
"tip": None,
}
self.recipes[(g["nigiri2"], g["nigiri1"])] = {
"target": g["nigiri3"], "consume": STACK_CONSUME,
"tip": "§a堆叠成三个",
"tip": None,
}
self.featureBlocks.add(g["nigiri1"])
self.featureBlocks.add(g["nigiri2"])
@@ -242,7 +242,6 @@ class ShousiService(BlueFoxServerSystem):
return False
self.consumeItem(playerId, itemDict, 1)
self.replaceBlock(targetPos, dim, NIGIRI_BASE, playerId)
comp.CreateMsg(playerId).NotifyOneMessage(playerId, "§a摆成手握普通寿司")
return True
# ============================================================================
@@ -272,9 +271,6 @@ class ShousiService(BlueFoxServerSystem):
# 递减取走: 以掉落物形式返还卷寿司
if recipe.get("drop"):
self.dropItem(dim, pos, recipe["drop"])
# 提示
if recipe.get("tip"):
comp.CreateMsg(playerId).NotifyOneMessage(playerId, recipe["tip"])
# ============================================================================
# 四、切块(手持菜刀右键卷寿司两次 -> 寿司块(三个))
@@ -288,11 +284,8 @@ class ShousiService(BlueFoxServerSystem):
if n >= CUT_COUNT:
self.cutCounter.pop(key, None)
self.replaceBlock(pos, dim, g["cubes"], playerId)
msg = g.get("cutTip") or "§a切好了"
else:
self.cutCounter[key] = n
msg = "§a切寿司中…(%d/%d)" % (n, CUT_COUNT)
comp.CreateMsg(playerId).NotifyOneMessage(playerId, msg)
return True
# ============================================================================