稻谷bug修复 提示删除
This commit is contained in:
1 parent
344fad19ac
commit
bd2ebfb154
43 files changed
+700
-846
No files matched your search
@@ -33,11 +33,11 @@ NaturalService / NaturalTimerService 读取,FeatureDispatcher 通过方块名/
|
||||
# ============================================================================
|
||||
FIREWOOD_RULES = [
|
||||
{"source": "rtdd:firewood_2", "item": "rtdd:firewood",
|
||||
"target": "rtdd:firewood", "consume": 1, "tip": "§a堆放柴火"},
|
||||
"target": "rtdd:firewood", "consume": 1, "tip": None},
|
||||
{"source": "rtdd:firewood", "item": None,
|
||||
"target": "rtdd:firewood_2",
|
||||
"dropItem": [{"name": "rtdd:firewood_2", "count": 1}],
|
||||
"tip": "§a取走柴火"},
|
||||
"tip": None},
|
||||
]
|
||||
|
||||
# ============================================================================
|
||||
@@ -48,7 +48,7 @@ GRAPE_HARVEST = {
|
||||
"source": "rtdd:grapebushes_2", "item": None,
|
||||
"target": "rtdd:grapebushes_1",
|
||||
"dropItem": [{"name": "rtdd:grape", "count": 3}],
|
||||
"tip": "§a取出了3个葡萄",
|
||||
"tip": None,
|
||||
}
|
||||
|
||||
# 葡萄种植: 手持葡萄右键支杆 -> 葡萄藤_1(之后按原版 tick 随机生长, 无提示)
|
||||
|
||||
-3
@@ -180,9 +180,6 @@ class NaturalService(BlueFoxServerSystem):
|
||||
# 给背包物品
|
||||
if recipe.get("giveItem"):
|
||||
self.giveItem(playerId, recipe["giveItem"])
|
||||
# 提示
|
||||
if recipe.get("tip"):
|
||||
comp.CreateMsg(playerId).NotifyOneMessage(playerId, recipe["tip"])
|
||||
|
||||
def _applyBoneMeal(self, playerId, pos, dim, blockName, itemDict):
|
||||
"""骨粉催熟葡萄藤: 消耗1个骨粉, 沿 GROW_CHAIN 长大一级(不越级), 无提示。
|
||||
|
||||
+1
-2
@@ -148,8 +148,6 @@ class NaturalTimerService(BlueFoxServerSystem):
|
||||
return
|
||||
self.replaceBlock(pos, dim, recipe["target"], None)
|
||||
self._clearTimerData(dim, pos)
|
||||
if recipe.get("doneTip"):
|
||||
self._notifyIfOnline(data["rtdd_tp"], recipe["doneTip"])
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
@@ -193,6 +191,7 @@ class NaturalTimerService(BlueFoxServerSystem):
|
||||
ids = comp.CreateGame(LevelId).GetAllPlayerIds()
|
||||
if playerId in ids:
|
||||
comp.CreateMsg(playerId).NotifyOneMessage(playerId, tip)
|
||||
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
Reference in new issue
Block a user