From 61dc5eb6c90fe68df51a6ad6f4071ba38c145bba Mon Sep 17 00:00:00 2001 From: suhongyang <1609423485@qq.com> Date: Wed, 26 Jun 2019 20:57:49 +0800 Subject: [PATCH] fix global to local --- src/adv/Adv.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adv/Adv.lua b/src/adv/Adv.lua index 9426af3..8f01ca7 100644 --- a/src/adv/Adv.lua +++ b/src/adv/Adv.lua @@ -1,8 +1,8 @@ local Passive = require "adv.AdvPassive" --- 工具函数 +-- 工具函数--第一象限 < 10000 < 第二象限 < 20000 < 第四象限 < 30000 < 第三象限 local function getIdByCr(c, r) - local crId = math.abs(r) + math.abs(c) * 100 + local crId = math.abs(r) + math.abs(c) * 100 -- row + column * 100 if c < 0 then crId = crId + 10000 end @@ -27,7 +27,7 @@ local function getCrById(crId) end -----------------------------随机地图----------------------------- ---检查 是否满足层数限制条件 +--检查 是否满足层数限制条件 -- if checktype == 1 then check value in range a=b else check value in array a=b=c local function checkIsIn(checkValue, checkType, checkRange) if not checkValue then return end if checkType == 1 then @@ -213,7 +213,7 @@ local function randomAdvMap(role, chapterId, level, notNotify) end for blockId, stageType in pairs(roomData["blocks"]) do if AdvSpecialStage[stageType] then - eventType = AdvEventType[AdvSpecialStage[stageType]] -- 地块固定类型 + local eventType = AdvEventType[AdvSpecialStage[stageType]] -- 地块固定类型 randomEvent(roomId, blockId, eventType) else stagePool["global"][stageType] = stagePool["global"][stageType] or {} -- libgit2 0.21.2