From c6e86ae57442b665d138bdb8bdbd2f7bbd9f5520 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 13 Mar 2025 11:55:28 +0800 Subject: feat: pokobs drop a broken heart when a bullet hits them also add a hook (onHit) to define behavior after a enemy is hit --- data/roomData.lua | 188 +++++++++++++++++++++++++++--------------------------- 1 file changed, 94 insertions(+), 94 deletions(-) (limited to 'data/roomData.lua') diff --git a/data/roomData.lua b/data/roomData.lua index 2292bb7..3a7abaa 100644 --- a/data/roomData.lua +++ b/data/roomData.lua @@ -9,100 +9,100 @@ local roomData = { enemies = {}, manualPlacementOnly = true }, - lancerParty = { - name = "Lancers' Party", - type = roomType.COMBAT, - width = config.defaultRoomW, - height = config.defaultRoomH, - enemies = { - {"lancer", "topRight"}, - {"lancer", "topLeft"}, - {"lancer", "bottomRight"}, - {"lancer", "bottomLeft"}, - }, - obstacles = { - {"pillar", "center"} - }, - }, - blueberries = { - name = "Blueberries", - type = roomType.COMBAT, - width = config.defaultRoomW, - height = config.defaultRoomH, - enemies = { - {"lancer", "leftCenter"}, - {"lancer", "rightCenter"}, - {"citrusLitulon", "topCenter"}, - {"citrusLitulon", "center"}, - {"citrusLitulon", "bottomCenter"}, - }, - obstacles = { - {"pillar", "topRight"}, - {"pillar", "bottomLeft"}, - {"pillar", "topLeft"}, - {"pillar", "bottomRight"}, - }, - }, - spigerCave = { - name = "Spiger Cave", - type = roomType.COMBAT, - width = config.defaultRoomW, - height = config.defaultRoomH, - enemies = { - {"spiger", "leftCenter"}, - {"spiger", "rightCenter"}, - {"spiger", "center"}, - }, - obstacles = { - {"pillar", "topCenter"}, - {"pillar", "bottomCenter"}, - }, - }, - library = { - name = "Library", - type = roomType.COMBAT, - width = config.defaultRoomW, - height = config.defaultRoomH, - enemies = { - {"librarian", "topCenter"}, - {"librarian", "bottomCenter"}, - {"lancer", "center"}, - }, - obstacles = { - {"pillar", "topRight"}, - {"pillar", "bottomLeft"}, - {"pillar", "topLeft"}, - {"pillar", "bottomRight"}, - }, - }, - bookstore = { - name = "Book Store", - type = roomType.COMBAT, - width = config.defaultRoomW, - height = config.defaultRoomH, - enemies = { - {"librarian", "topRight"}, - {"librarian", "bottomRight"}, - {"librarian", "topLeft"}, - {"librarian", "bottomLeft"}, - }, - obstacles = { - {"pillar", "center"}, - }, - }, - fireflyForest = { - name = "Firefly Forest", - type = roomType.COMBAT, - width = config.defaultRoomW, - height = config.defaultRoomH, - enemies = { - {"citrusLitulon","random"}, - {"citrusLitulon","random"}, - {"citrusLitulon","random"}, - {"citrusLitulon","random"}, - {"citrusLitulon","random"}, - } - }, + -- lancerParty = { + -- name = "Lancers' Party", + -- type = roomType.COMBAT, + -- width = config.defaultRoomW, + -- height = config.defaultRoomH, + -- enemies = { + -- {"lancer", "topRight"}, + -- {"lancer", "topLeft"}, + -- {"lancer", "bottomRight"}, + -- {"lancer", "bottomLeft"}, + -- }, + -- obstacles = { + -- {"pillar", "center"} + -- }, + -- }, + -- blueberries = { + -- name = "Blueberries", + -- type = roomType.COMBAT, + -- width = config.defaultRoomW, + -- height = config.defaultRoomH, + -- enemies = { + -- {"lancer", "leftCenter"}, + -- {"lancer", "rightCenter"}, + -- {"citrusLitulon", "topCenter"}, + -- {"citrusLitulon", "center"}, + -- {"citrusLitulon", "bottomCenter"}, + -- }, + -- obstacles = { + -- {"pillar", "topRight"}, + -- {"pillar", "bottomLeft"}, + -- {"pillar", "topLeft"}, + -- {"pillar", "bottomRight"}, + -- }, + -- }, + -- spigerCave = { + -- name = "Spiger Cave", + -- type = roomType.COMBAT, + -- width = config.defaultRoomW, + -- height = config.defaultRoomH, + -- enemies = { + -- {"spiger", "leftCenter"}, + -- {"spiger", "rightCenter"}, + -- {"spiger", "center"}, + -- }, + -- obstacles = { + -- {"pillar", "topCenter"}, + -- {"pillar", "bottomCenter"}, + -- }, + -- }, + -- library = { + -- name = "Library", + -- type = roomType.COMBAT, + -- width = config.defaultRoomW, + -- height = config.defaultRoomH, + -- enemies = { + -- {"librarian", "topCenter"}, + -- {"librarian", "bottomCenter"}, + -- {"lancer", "center"}, + -- }, + -- obstacles = { + -- {"pillar", "topRight"}, + -- {"pillar", "bottomLeft"}, + -- {"pillar", "topLeft"}, + -- {"pillar", "bottomRight"}, + -- }, + -- }, + -- bookstore = { + -- name = "Book Store", + -- type = roomType.COMBAT, + -- width = config.defaultRoomW, + -- height = config.defaultRoomH, + -- enemies = { + -- {"librarian", "topRight"}, + -- {"librarian", "bottomRight"}, + -- {"librarian", "topLeft"}, + -- {"librarian", "bottomLeft"}, + -- }, + -- obstacles = { + -- {"pillar", "center"}, + -- }, + -- }, + -- fireflyForest = { + -- name = "Firefly Forest", + -- type = roomType.COMBAT, + -- width = config.defaultRoomW, + -- height = config.defaultRoomH, + -- enemies = { + -- {"citrusLitulon","random"}, + -- {"citrusLitulon","random"}, + -- {"citrusLitulon","random"}, + -- {"citrusLitulon","random"}, + -- {"citrusLitulon","random"}, + -- } + -- }, daddyAndSon = { name = "Daddies and Sons", type = roomType.COMBAT, -- cgit v1.2.3