refactor(NpcTeleport): 优化转生检查逻辑
- 将原有的转生检查逻辑从条件判断改为条件赋值,简化了代码结构 - 这个改动提高了代码的可读性和执行效率,因为在所有情况下都会进行赋值操作
This commit is contained in:
@@ -123,7 +123,7 @@ if NetmsgDispatcher then
|
||||
end
|
||||
|
||||
-- 检查转生
|
||||
local zs = config.zsLevel and Actor.checkActorLevel(actor, 0, config.zsLevel)
|
||||
local zs = config.zsLevel or Actor.checkActorLevel(actor, 0, config.zsLevel)
|
||||
--local tips = string.format(Lang.TisMsg.xxx, config.nLevel)
|
||||
--Actor.sendTipmsg(actor, "等级不足!", ttFlyTip)
|
||||
if editionConf.suit == System.getServerId() and config.suit then
|
||||
|
||||
Reference in New Issue
Block a user