oopsy: add logDefinition refactoring (#3471)
oopsy: add logDefinition refactoring (#3471)

- change massive if-else to switch-case
- stop using hard-coded log type, use logDefinition's instead
- change target name extraction in `WasDefeated` to using logDefinition's field
quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot