2023-07-14 19:35:33 +00:00
|
|
|
local XGoldenMinerBaseObj = require("XEntity/XGoldenMiner/Object/XGoldenMinerBaseObj")
|
|
|
|
|
|
|
|
--黄金矿工红包箱
|
|
|
|
local XGoldenMinerRedEnvelope = XClass(XGoldenMinerBaseObj, "XGoldenMinerRedEnvelope")
|
|
|
|
|
|
|
|
function XGoldenMinerRedEnvelope:Ctor()
|
2024-09-01 20:49:41 +00:00
|
|
|
self.GroupId = XGoldenMinerConfigs.GetStoneScore(XGoldenMinerRedEnvelope.Super.GetId(self))
|
|
|
|
self.RedEnvelopeRandPoolId = XGoldenMinerConfigs.GetRedEnvelopeRandId(self.GroupId)
|
2023-07-14 19:35:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function XGoldenMinerRedEnvelope:GetScore()
|
|
|
|
return XGoldenMinerConfigs.GetRedEnvelopeScore(self.RedEnvelopeRandPoolId) or 0
|
|
|
|
end
|
|
|
|
|
|
|
|
function XGoldenMinerRedEnvelope:GetItemId()
|
|
|
|
return XGoldenMinerConfigs.GetRedEnvelopeItemId(self.RedEnvelopeRandPoolId)
|
|
|
|
end
|
|
|
|
|
|
|
|
return XGoldenMinerRedEnvelope
|