new CrowController()
Members
-
hasSpawned
-
whether this instance of the controller has spawned a crow mauler on this level
-
inBattle
-
whether a crow mauler has forced its way into this combat
-
mapId
-
the id of the mapId crow mauler was spawned in last
-
onScreen
-
whether this instance of the controller's crow mauler is on screen or not
-
self :MapEvent
-
The current crow obj if spawned
Methods
-
battleSpawnTick()
-
the function called every x ms to check if crow mauler should invade
-
canFollow()
-
checks if the crow mauler can follow the player, if the crow mauler was in the last room and rand chance.
-
createCrowObj() → {MapEvent}
-
create a new MapEvent for crow mauler. Does not spawn the event.
Returns:
MapEvent -
crowCanSpawn() → {boolean}
-
checks if crow mauler can spawn
Returns:
boolean -
despawn()
-
remove the current crow mauler event from the world
-
disableBaseCrowMauler()
-
disable crow mauler
- To Do:
-
- make sure this works properly
-
enter()
-
crow mauler enter the room
-
findClosestSpawnPoint(x;, y;) → {Game_Event}
-
find the closest spawn point to a provided x and y
Parameters:
Name Type Description x;
int y;
int -
follow()
-
crow mauler follow player from last room to this room
-
getAllTransferPointsOnMap()
-
get all possible entry or exit event tiles in the room
Returns:
-an array of every event that has an active transfer event in its list
-
getScaling()
-
a function to return the scaler, meat to be overridden if other mods need to change this
-
invadeBattle(net)
-
have crow mauler invade the current battle
Parameters:
Name Type Default Description net
* false multiplayer only (fix this later)
-
isDead()
-
whether this instance's crow mauler is dead
-
onEnterRoom()
-
the function called to handle spawning logic every time the player enters a new room
-
shouldDespawn()
-
checks a random chance to see if the crow should despawn
-
shouldEnterCombat()
-
checks a random chance to see if the crow should appear in combat
-
spawn()
-
spawn the crow mauler event removing the previous one if it exists
-
spawnTick()
-
the function called every x ms to check if crow mauler should spawn
-
update()
-
the update method used to spawn crow mauler