TeamREPENTOGON / TeamREPENTOGON/REPENTOGON
MC_POST_GRID_ENTITY_SPAWN doesn't seem to trigger for doors.
Open
@namishere is already working on this.
Since Oct 18, 2024.
enhancement
lua
- Dominant language
- C++
- Stars
- 345
- Forks
- 51
- Avg merge
- 11h 2m
- Merged PRs (30d)
- 4
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.