#pragma once #include "entity.h" // The gibs a burst throws: how many and how far apart, which kinds (the config's GibFlag bits), their color, the push // they share and the speed they fly at. struct GibSpawn { ColorMod color = COLOR_DEFAULT; Vector position{}; Vector velocity{}; Entity* spawner = nullptr; float speed = 1; float spread = 0; int amount = 0; uint32_t gibFlags = 0; }; void gibs_spawn(const GibSpawn& gibs); Entity* bishop_nearest_find(const Vector& position, bool isCharmed); uint64_t tear_damage_flags_get(const TearFlags& tearFlags, Entity* source);