Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Boilerplate_!Base/src/lib/Constant.lua
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,18 @@ local CONSTANT = {
ROGUELIKE_MAP = {
[995] = true, -- �˻ĺ��
},
CITY_MAP = {
[ 6] = true, -- ����
[ 8] = true, -- ����
[ 15] = true, -- ����
[108] = true, -- �ɶ�
[151] = true, -- ������ս��
[156] = true, -- ������ս��
[172] = true, -- ������
[194] = true, -- ̫ԭ
[239] = true, -- ������
[332] = true, -- ���͵�
},
STRONGHOLD_MAP = {
[ 9] = true, -- ���
[ 13] = true, -- ��ˮ��
Expand Down
12 changes: 10 additions & 2 deletions Boilerplate_!Base/src/lib/Game.Map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,17 @@ end
---�ж�һ����ͼ�Dz������ǵ�ͼ
---@param dwMapID number @Ҫ�жϵĵ�ͼID
---@return boolean @�Ƿ������ǵ�ͼ
do
local CITY_MAP = X.CONSTANT.CITY_MAP or {}
function X.IsCityMap(dwMapID)
local tType = Table_GetMapType(dwMapID)
return tType and tType.CITY and true or false
if CITY_MAP[dwMapID] ~= nil then
return CITY_MAP[dwMapID]
else
local tType = Table_GetMapType(dwMapID)
CITY_MAP[dwMapID] = tType and tType.CITY and true or false
return CITY_MAP[dwMapID]
end
end
end

---�жϵ�ǰ��ͼ�Dz������ǵ�ͼ
Expand Down