mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-18 21:25:58 +00:00
SXX
This commit is contained in:
@@ -325,6 +325,8 @@ function SCORING:New( GameName, SavePath, AutoSave )
|
|||||||
self:OpenCSV( GameName )
|
self:OpenCSV( GameName )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self:I("SCORING "..tostring(GameName).." started! v"..self.version)
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -399,6 +401,11 @@ end
|
|||||||
-- @return #SCORING
|
-- @return #SCORING
|
||||||
function SCORING:AddStaticScore( ScoreStatic, Score )
|
function SCORING:AddStaticScore( ScoreStatic, Score )
|
||||||
|
|
||||||
|
if ScoreStatic == nil then
|
||||||
|
BASE:E("SCORING.AddStaticScore: Parameter ScoreStatic is nil!")
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
local StaticName = ScoreStatic:GetName()
|
local StaticName = ScoreStatic:GetName()
|
||||||
|
|
||||||
self.ScoringObjects[StaticName] = Score
|
self.ScoringObjects[StaticName] = Score
|
||||||
@@ -1305,7 +1312,7 @@ function SCORING:_EventOnDeadOrCrash( Event )
|
|||||||
local Destroyed = false
|
local Destroyed = false
|
||||||
|
|
||||||
-- What is the player destroying?
|
-- What is the player destroying?
|
||||||
if Player and Player.Hit and Player.Hit[TargetCategory] and Player.Hit[TargetCategory][TargetUnitName] and Player.Hit[TargetCategory][TargetUnitName].TimeStamp ~= 0 and (TargetUnit.BirthTime == nil or Player.Hit[TargetCategory][TargetUnitName].TimeStamp > TargetUnit.BirthTime) then -- Was there a hit for this unit for this player before registered???
|
if Player and Player.Hit and Player.Hit[TargetCategory] and Player.Hit[TargetCategory][TargetUnitName] and Player.Hit[TargetCategory][TargetUnitName].TimeStamp ~= 0 and TargetUnit and (TargetUnit.BirthTime == nil or Player.Hit[TargetCategory][TargetUnitName].TimeStamp > TargetUnit.BirthTime) then -- Was there a hit for this unit for this player before registered???
|
||||||
|
|
||||||
local TargetThreatLevel = Player.Hit[TargetCategory][TargetUnitName].ThreatLevel
|
local TargetThreatLevel = Player.Hit[TargetCategory][TargetUnitName].ThreatLevel
|
||||||
local TargetThreatType = Player.Hit[TargetCategory][TargetUnitName].ThreatType
|
local TargetThreatType = Player.Hit[TargetCategory][TargetUnitName].ThreatType
|
||||||
|
|||||||
Reference in New Issue
Block a user