PGRData/Script/matrix/xui/xuichesspursuit/xdata/XChessPursuitMapBoss.lua

53 lines
No EOL
1.6 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- 管理ChessPursuitMapBoss的服务端数据只能通过Get方法获取内部数据
local XChessPursuitMapBoss = XClass(nil, "XChessPursuitMapBoss")
local CSXChessPursuitDirection = CS.XChessPursuitDirection
function XChessPursuitMapBoss:Ctor(MapBoss)
self.ChessPursuitMapBoss = MapBoss
self.ChessPursuitBossTemplate = XChessPursuitConfig.GetChessPursuitBossTemplate(MapBoss.Id)
end
function XChessPursuitMapBoss:GetId()
return self.ChessPursuitMapBoss.Id
end
function XChessPursuitMapBoss:GetInitHp()
return self.ChessPursuitMapBoss.InitHp
end
function XChessPursuitMapBoss:GetChessPursuitBossTemplate()
return self.ChessPursuitBossTemplate
end
--战斗结束打BOSS最高可获得的分数
function XChessPursuitMapBoss:GetBattleHurtMax()
return self.ChessPursuitMapBoss.BattleHurtMax
end
--战斗结束我方血量最高可获得的分数
function XChessPursuitMapBoss:GetSelfHpMax()
return self.ChessPursuitMapBoss.SelfHpMax
end
--策划配置的最大血量
function XChessPursuitMapBoss:GetMaxHpRatio()
return self.ChessPursuitMapBoss.SubBossMaxHp / self.ChessPursuitMapBoss.InitHp
end
--策划配置的最小击杀次数
function XChessPursuitMapBoss:GetMinBossBattleCount()
return self.ChessPursuitMapBoss.InitHp / self.ChessPursuitMapBoss.SubBossMaxHp
end
--BOSS随机移动的最小步
function XChessPursuitMapBoss:GetBossStepMin()
return self.ChessPursuitMapBoss.BossStepMin
end
--BOSS随机移动的最小步
function XChessPursuitMapBoss:GetBossStepMax()
return self.ChessPursuitMapBoss.BossStepMax
end
return XChessPursuitMapBoss