game: use switch in g_combat.c