-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Eclipse's tweak tables to statistics
- Loading branch information
1 parent
985ddb0
commit e320fc0
Showing
4 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--add Eclipse's tweak tables to special unit ids | ||
StatisticsManager.special_unit_ids = { | ||
"shield", | ||
"spooc", | ||
"tank", | ||
"tank_elite", | ||
"tank_hw", | ||
"taser", | ||
"medic", | ||
"sniper", | ||
"phalanx_minion", | ||
"phalanx_minion_break", | ||
"phalanx_vip", | ||
"heavy_swat_sniper", | ||
"zeal_shield", | ||
"zeal_medic", | ||
"zeal_taser", | ||
"swat_turret", | ||
"biker_boss", | ||
"chavez_boss", | ||
"mobster_boss", | ||
"hector_boss", | ||
"hector_boss_no_armor", | ||
"tank_medic", | ||
"tank_mini", | ||
"marshal_marksman", | ||
"marshal_shield", | ||
"triad_boss", | ||
"triad_boss_no_armor", | ||
"snowman_boss", | ||
"deep_boss", | ||
"piggydozer" | ||
} | ||
|
||
--use vanilla's stat tweak_tables while adding new ones | ||
local old_stats = StatisticsManager.init | ||
function StatisticsManager:init() | ||
old_stats(self) | ||
self._defaults.killed.tank_elite = { | ||
count = 0, | ||
head_shots = 0, | ||
melee = 0, | ||
explosion = 0, | ||
tied = 0 | ||
} | ||
self._defaults.killed.zeal_shield = { | ||
count = 0, | ||
head_shots = 0, | ||
melee = 0, | ||
explosion = 0, | ||
tied = 0 | ||
} | ||
self._defaults.killed.zeal_taser = { | ||
count = 0, | ||
head_shots = 0, | ||
melee = 0, | ||
explosion = 0, | ||
tied = 0 | ||
} | ||
self._defaults.killed.zeal_medic = { | ||
count = 0, | ||
head_shots = 0, | ||
melee = 0, | ||
explosion = 0, | ||
tied = 0 | ||
} | ||
self._defaults.killed.phalanx_minion_break = { | ||
count = 0, | ||
head_shots = 0, | ||
melee = 0, | ||
explosion = 0, | ||
tied = 0 | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters