From bdf02090a50dbfaf5fcdf66080e26ec5708eb4ae Mon Sep 17 00:00:00 2001 From: Kiri Date: Fri, 8 Sep 2023 18:42:45 -0700 Subject: [PATCH] Fixed batteries starting off empty in frag counter. --- TODO.md | 2 +- zscript/gretchencounter.zs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 06ccbba..2941ff5 100644 --- a/TODO.md +++ b/TODO.md @@ -12,7 +12,7 @@ - ~~Brightmaps for caco plush~~ - ~~Set actual chance for caco plush spawn~~ - ~~Caco plush sprite scaling~~ +- ~~Frag counter in loadout starts with no battery~~ - Organize source_data -- Frag counter in loadout starts with no battery diff --git a/zscript/gretchencounter.zs b/zscript/gretchencounter.zs index f6bf2a2..97bfc30 100644 --- a/zscript/gretchencounter.zs +++ b/zscript/gretchencounter.zs @@ -16,8 +16,8 @@ const HDLD_KIRI_GRETCHENCOUNTER = "kgc"; enum GretchenCounterStatus { - KGC_BATTERY=0, - KGC_ACTIVE=1 + KGC_BATTERY = 1, + KGC_ACTIVE = 2 } class GretchenCounter : HDWeapon @@ -316,9 +316,9 @@ class GretchenCounter : HDWeapon override void InitializeWepStats(bool idfa) { + super.InitializeWepStats(idfa); weaponstatus[KGC_BATTERY] = 20; weaponstatus[KGC_ACTIVE] = 0; - super.InitializeWepStats(idfa); } override double WeaponBulk()