From 4f373e401654768a3483d769787647b2fe12985f Mon Sep 17 00:00:00 2001 From: Akka <104902222+Akka0@users.noreply.github.com> Date: Thu, 12 May 2022 19:06:33 +0800 Subject: [PATCH] add docs for tower --- README.md | 1 + README_zh-CN.md | 1 + .../java/emu/grasscutter/game/tower/TowerScheduleManager.java | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bbef2f834..4bb7c96af 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ There is a dummy user named "Server" in every player's friends list that you can | talent | talent \ \ | player.settalent | Client only | Sets talent level for your currently selected character | | | teleport | teleport [@playerUid] \ \ \ [sceneId] | player.teleport | Both side | Change the player's position. | tp | | tpall | | player.tpall | Client only | Teleports all players in your world to your position | | +| unlocktower | | player.tower | Client only | Unlock the all floors of abyss | ut | | weather | weather \ \ | player.weather | Client only | Changes the weather | w | ### Bonus diff --git a/README_zh-CN.md b/README_zh-CN.md index 66878b4f4..372377e4c 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -140,6 +140,7 @@ chmod +x gradlew | talent | talent <天赋ID> <等级> | player.settalent | 仅客户端 | 设置当前角色的天赋等级 | | | teleport | teleport [@playerUid] \ \ \ [sceneId] | player.teleport | 均可使用 | 传送玩家到指定坐标 | tp | | tpall | | player.tpall | 仅客户端 | 传送多人世界中所有的玩家到自身地点 | | +| unlocktower | | player.tower | 仅客户端 | 解锁深渊全部层 | ut | | weather | weather <天气ID> <气候ID> | player.weather | 仅客户端 | 改变天气 | w | ### 额外功能 diff --git a/src/main/java/emu/grasscutter/game/tower/TowerScheduleManager.java b/src/main/java/emu/grasscutter/game/tower/TowerScheduleManager.java index ae756f009..1d9a12b89 100644 --- a/src/main/java/emu/grasscutter/game/tower/TowerScheduleManager.java +++ b/src/main/java/emu/grasscutter/game/tower/TowerScheduleManager.java @@ -39,7 +39,8 @@ public class TowerScheduleManager { public TowerScheduleData getCurrentTowerScheduleData(){ var data = GameData.getTowerScheduleDataMap().get(towerScheduleConfig.getScheduleId()); if(data == null){ - Grasscutter.getLogger().error("Could not get current tower schedule data by config:{}", towerScheduleConfig); + Grasscutter.getLogger().error("Could not get current tower schedule data by schedule id {}, please check your resource files", + towerScheduleConfig.getScheduleId()); } return data;