branchrust_reboot/main/projectileweaponmod_allocscancel
4 Commits over 0 Days - ∞cph!
Clean: ProjectileWeaponMod.Mult - use 1 as hardcoded default value
They've been manually specified as 1 everywhere, seems a bit redundant
Tests: compiles
Optim: cache all selectors that are used in mod value aggregations
Tests: got shot by a scientist. killed them with a fully modded ak
Optim: reimplement projectile mod aggregators to be alloc free
- added outstanding Avg, Min and Max helpers
- all helpers are now generic, to support the 2 overloads we have
- ripped out GetMods to avoid accidental reintroduction of allocs
Still need to fix remaining dynamic callback creation
Tests: got shot by a scientist
Clean: simplify ProjectileWeaponMod code
- get rid of 0 as default arg
- mini bugfix: hook up bypassModToggles in one of Sum overloads
- added non-GC mul and sum, but not plugged in yet
Tests: compiles