mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-24 20:05:13 -06:00
MapArea canStartDeath() killer type nullability
This commit is contained in:
parent
8252a1f63c
commit
f1bf63d353
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ import core.game.node.entity.Entity
|
|||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.world.map.Location
|
||||
import core.game.world.map.zone.MapZone
|
||||
import core.game.world.map.zone.RegionZone
|
||||
import core.game.world.map.zone.ZoneBorders
|
||||
import core.game.world.map.zone.ZoneRestriction
|
||||
|
||||
|
|
@ -38,7 +37,7 @@ interface MapArea : ContentInterface {
|
|||
* Return true/false if you want to allow the deaths, especially false for "safe" areas.
|
||||
* Return null if you want the default check in MapZone. (default)
|
||||
**/
|
||||
fun canStartDeath(entity: Entity, killer: Entity): Boolean? { return null }
|
||||
fun canStartDeath(entity: Entity, killer: Entity?): Boolean? { return null }
|
||||
|
||||
companion object {
|
||||
val zoneMaps = HashMap<String, MapZone>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue