MapArea canStartDeath() killer type nullability

This commit is contained in:
dam 2026-04-10 00:27:16 +03:00
parent 8252a1f63c
commit f1bf63d353
No known key found for this signature in database
GPG key ID: 4AF4E722399663FB

View file

@ -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>()