mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-13 17:31:41 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@@ -2212,7 +2212,11 @@ function SCORING:ScoreCSV( PlayerName, TargetPlayerName, ScoreType, ScoreTimes,
|
|||||||
local data = self:ReportScoreAllSummary("",true)
|
local data = self:ReportScoreAllSummary("",true)
|
||||||
local text = "-- Playername;;Score;;Penalty\n"
|
local text = "-- Playername;;Score;;Penalty\n"
|
||||||
for _playername,_data in pairs(data or {}) do
|
for _playername,_data in pairs(data or {}) do
|
||||||
text = text..string.format("%s;;%d;;%d\n")
|
-- ReportTable[PlayerName] = {["Score"]=PlayerScore,["Penalty"]=PlayerPenalty}
|
||||||
|
local Playername = _playername or "Ghost"
|
||||||
|
local Score = _data.Score or 0
|
||||||
|
local Penalty = _data.Penalty or 0
|
||||||
|
text = text..string.format("%s;;%d;;%d\n",Playername,Score,Penalty)
|
||||||
end
|
end
|
||||||
UTILS.SaveToFile(path,filename,text)
|
UTILS.SaveToFile(path,filename,text)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -8597,8 +8597,8 @@ function WAREHOUSE:_DeleteStockItem(stockitem)
|
|||||||
local item=self.stock[i] --#WAREHOUSE.Assetitem
|
local item=self.stock[i] --#WAREHOUSE.Assetitem
|
||||||
if item.uid==stockitem.uid then
|
if item.uid==stockitem.uid then
|
||||||
table.remove(self.stock,i)
|
table.remove(self.stock,i)
|
||||||
-- remove also from warehouse DB
|
-- remove also from warehouse DB (not good! causes an error if the asset needs to be added to a requesting wherehouse)
|
||||||
_WAREHOUSEDB.Assets[stockitem.uid]=nil
|
--_WAREHOUSEDB.Assets[stockitem.uid]=nil
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user