Removed the unnecessary and annoying player lock when cooking an item
Moved all the achievement diary checks out into the achievement event receiver Refactored `ResourceGatheredEvent` -> `ResourceProducedEvent` and added a new optional field, `original` for item processing
This commit is contained in:
@@ -5,7 +5,7 @@ import core.game.node.entity.Entity
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.game.node.entity.player.link.TeleportManager.TeleportType
|
||||
|
||||
data class ResourceGatheredEvent(val itemId: Int, val amount: Int, val source: Node) : Event
|
||||
data class ResourceProducedEvent(val itemId: Int, val amount: Int, val source: Node, val original: Int = -1) : Event
|
||||
data class NPCKillEvent(val npc: NPC) : Event
|
||||
data class TeleportEvent(val type: TeleportType, val source: Int = -1) : Event
|
||||
data class LitFireEvent(val logId: Int) : Event
|
||||
|
||||
Reference in New Issue
Block a user