Jump to content

[Bug] Mr Skits still appears on water tiles


DarkXero

Recommended Posts

SanityMonsterSpawner:UpdateSkitters(dt)

Lines 477-489

local prefab = "shadowskittish"
if GetMap() then
	local tile = GetMap():GetTileAtPoint(pt:Get())
	if GetMap():IsWater(tile) then
		prefab = "shadowskittish_water"
	end
end

local monster = SpawnPrefab("shadowskittish")		
monster.Transform:SetPosition(pt:Get() )
monster:ListenForEvent("onremove", function() self.num_skitters = self.num_skitters - 1 end, monster )
self.noskitterstime = spawn_interval + math.random()*spawn_interval*.5
self.num_skitters = self.num_skitters + 1

The prefab variable isn't actually used when spawning the prefab for the monster variable.

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...