TeamREPENTOGON / TeamREPENTOGON/REPENTOGON

MC_POST_GRID_ENTITY_SPAWN doesn't seem to trigger for doors.

Open
#568 1 comment 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.