private static void Postfix(pAmmoGive data) { if (!data.targetPlayer.TryGetPlayer(out var player) || player.IsLocal) { ResourceUpdatedEvents.AmmoGained(data.ammoStandardRel, data.ammoSpecialRel, data.ammoClassRel); } }
private static void Postfix(float infection, float infectionHealthRel) { Watch.Current?.UpdateInfection(infection); ResourceUpdatedEvents.InfectionUpdated(infection); }
private static void Postfix(float health) { Watch.Current?.UpdateHealth(health); ResourceUpdatedEvents.HealthUpdated(health); }