mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 15:55:39 +02:00
Fix for #33 - artillery kills shall be now properlly counted
This commit is contained in:
@@ -494,6 +494,7 @@ Perun.LogStatsCount = function(argPlayerID,argAction,argTimer)
|
|||||||
_TempData['ps_kills_infantry'] = 0
|
_TempData['ps_kills_infantry'] = 0
|
||||||
_TempData['ps_kills_ships'] = 0
|
_TempData['ps_kills_ships'] = 0
|
||||||
_TempData['ps_kills_fortification'] = 0
|
_TempData['ps_kills_fortification'] = 0
|
||||||
|
_TempData['ps_kills_artillery'] = 0
|
||||||
_TempData['ps_kills_other'] = 0
|
_TempData['ps_kills_other'] = 0
|
||||||
_TempData['ps_airfield_takeoffs'] = 0
|
_TempData['ps_airfield_takeoffs'] = 0
|
||||||
_TempData['ps_airfield_landings'] = 0
|
_TempData['ps_airfield_landings'] = 0
|
||||||
@@ -552,6 +553,8 @@ Perun.LogStatsCount = function(argPlayerID,argAction,argTimer)
|
|||||||
Perun.StatData[_player_hash]['ps_kills_infantry']=Perun.StatData[_player_hash]['ps_kills_infantry']+1
|
Perun.StatData[_player_hash]['ps_kills_infantry']=Perun.StatData[_player_hash]['ps_kills_infantry']+1
|
||||||
elseif argAction == "kill_Fortification" then
|
elseif argAction == "kill_Fortification" then
|
||||||
Perun.StatData[_player_hash]['ps_kills_fortification']=Perun.StatData[_player_hash]['ps_kills_fortification']+1
|
Perun.StatData[_player_hash]['ps_kills_fortification']=Perun.StatData[_player_hash]['ps_kills_fortification']+1
|
||||||
|
elseif argAction == "kill_Artillery" then
|
||||||
|
Perun.StatData[_player_hash]['ps_kills_artillery']=Perun.StatData[_player_hash]['ps_kills_artillery']+1
|
||||||
elseif argAction == "kill_Other" then
|
elseif argAction == "kill_Other" then
|
||||||
Perun.StatData[_player_hash]['ps_kills_other']=Perun.StatData[_player_hash]['ps_kills_other']+1
|
Perun.StatData[_player_hash]['ps_kills_other']=Perun.StatData[_player_hash]['ps_kills_other']+1
|
||||||
elseif argAction == "kill_PvP" then
|
elseif argAction == "kill_PvP" then
|
||||||
@@ -834,6 +837,8 @@ Perun.onGameEvent = function (eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
|
|||||||
_temp_event_type="kill_Infantry"
|
_temp_event_type="kill_Infantry"
|
||||||
elseif _temp_category == "Fortification" then
|
elseif _temp_category == "Fortification" then
|
||||||
_temp_event_type="kill_Fortification"
|
_temp_event_type="kill_Fortification"
|
||||||
|
elseif _temp_category == "Artillery" then
|
||||||
|
_temp_event_type="kill_Artillery"
|
||||||
else
|
else
|
||||||
_temp_event_type="kill_Other"
|
_temp_event_type="kill_Other"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user