function mod:postDevilDealDoorSpawn(gridEnt)
--only doors past this point.
local gridEntDoor = gridEnt:ToDoor();
print(gridEnt:GetType());
--last check handles duality.
if gridEntDoor ~= nil and gridEntDoor.TargetRoomType == RoomType.ROOM_DEVIL and TSIL.Doors.GetAngelRoomDoor()==nil then
music:PitchSlide(0.5)
end
end
mod:AddCallback(ModCallbacks.MC_POST_GRID_ENTITY_SPAWN,mod.postDevilDealDoorSpawn);
Print is for debugging, note that not a single one returns 16. Are they handled somewhere else?
This callback had to be manually patched into existing code, in a lot of different places. It seems like I missed this case because of it not behaving the same as other grid entity spawning functions.
Print is for debugging, note that not a single one returns 16. Are they handled somewhere else?