From 036725f697d9e9e8f1c099236f7d13282ec8b52a Mon Sep 17 00:00:00 2001 From: wxhn1225 <45218021+wxhn1225@users.noreply.github.com> Date: Sun, 12 Oct 2025 09:09:22 +0800 Subject: [PATCH] =?UTF-8?q?chore(=E8=87=AA=E5=AE=9A=E4=B9=89=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E7=AD=89=E7=BA=A7):=E5=8E=BB=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/自定义节点等级.pluto | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Scripts/自定义节点等级.pluto b/Scripts/自定义节点等级.pluto index 365003c..4665997 100644 --- a/Scripts/自定义节点等级.pluto +++ b/Scripts/自定义节点等级.pluto @@ -18,13 +18,8 @@ local function launchNode(nodeId, minLevel, maxLevel, hardMode) infoStr = infoStr:gsub("}", " tier=1\r\n}") end - if minLevel then - infoStr = infoStr:gsub("minEnemyLevel=%d+", $"minEnemyLevel={minLevel}") - end - - if maxLevel then - infoStr = infoStr:gsub("maxEnemyLevel=%d+", $"maxEnemyLevel={maxLevel}") - end + infoStr = infoStr:gsub("minEnemyLevel=%d+", $"minEnemyLevel={minLevel}") + infoStr = infoStr:gsub("maxEnemyLevel=%d+", $"maxEnemyLevel={maxLevel}") args:SetLevel(info.levelOverride:GetFullName()) args:AddContextTag(infoStr) @@ -43,14 +38,12 @@ end local commands = {} commands["节点"] = function(text) local parts = text:split(" ") - local nodeId = regionNames[parts[2]] or parts[2] - launchNode(nodeId, tonumber(parts[3]), tonumber(parts[4]), false) + launchNode(regionNames[parts[2]], tonumber(parts[3]), tonumber(parts[4]), false) end commands["钢铁"] = function(text) local parts = text:split(" ") - local nodeId = regionNames[parts[2]] or parts[2] - launchNode(nodeId, tonumber(parts[3]), tonumber(parts[4]), true) + launchNode(regionNames[parts[2]], tonumber(parts[3]), tonumber(parts[4]), true) end for prefix in commands do