Skip to content

Commit

Permalink
[#] 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralu committed Mar 28, 2023
1 parent c13f367 commit 2e19ea5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Const.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,6 @@ CONST.SEND_StallEnd = 0;
CONST.SEND_StallBrowse = 0;
CONST.SEND_StallBuy = 0;
CONST.PET_体成 = 0;
CONST.PET_体成 = 0;
CONST.PET_力成 = 0;
CONST.PET_力成 = 0;
CONST.PET_强成 = 0;
Expand Down Expand Up @@ -2073,7 +2072,7 @@ CONST.Encount_Rect_Y = 0x00000084 / 4 + 1
CONST.Encount_Rect_Width = 0x00000084 / 4 + 2
CONST.Encount_Rect_Height = 0x00000084 / 4 + 3

CONST.PET_体成 = %宠档_体成%;
local TEXT = [[
CONST.PET_体成 = %宠档_体成%;
CONST.PET_力成 = %宠档_力成%;
CONST.PET_力成 = %宠档_力成%;
Expand Down Expand Up @@ -3575,7 +3574,9 @@ CONST.Enemy_
CONST.Enemy_召唤Enemy1 = %Enemy_召唤Enemy1%;
CONST.Enemy_召唤Enemy2 = %Enemy_召唤Enemy2%;
CONST.Enemy_Talk编号 = %Enemy_Talk编号%;
]]

loadstring(TEXT)();
--for i, v in pairs(CONST) do
--print('const ', i, v);
--end
2 changes: 1 addition & 1 deletion libs/Gmsv/Data.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_G.Data = _G.Data or {}
Data = _G.Data or {}

---获取ItemsetIndex
function Data.ItemsetGetIndex(ItemID)
Expand Down
1 change: 1 addition & 0 deletions libs/Module/ModuleBase.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---@class ModuleBase
---@field name string
---@field protected ___aPath string
---@field lastIx number
---@field parts ModulePart[]
---@field migrations {version:number,name:string,value:string|function}[]|nil
Expand Down
1 change: 1 addition & 0 deletions libs/Module/ModuleSystem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function _G.loadModule(moduleName, opt)
--logInfo('ModuleSystem', 'new object', moduleName, module)
Modules[moduleName] = module;
module.___path = oPath;
---@diagnostic disable-next-line: invisible
module.___aPath = path;
module.___ctx = ctx;
module.___absolutePath = opt.absolutePath;
Expand Down

0 comments on commit 2e19ea5

Please sign in to comment.