From 3c394a6934c5aa54917ca1b777575d854831c90b Mon Sep 17 00:00:00 2001
From: Sheila <chibiflonne@gmail.com>
Date: Sun, 12 May 2019 21:41:43 -0300
Subject: [PATCH] New damage type for Summertide Phial, radius 1 light on-hit
 that lights tiles

---
 game/modules/tome/data/damage_types.lua | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/game/modules/tome/data/damage_types.lua b/game/modules/tome/data/damage_types.lua
index 92bd758d94..b86271006b 100644
--- a/game/modules/tome/data/damage_types.lua
+++ b/game/modules/tome/data/damage_types.lua
@@ -4151,3 +4151,19 @@ newDamageType{
 		end
 	end,
 }
+
+---new lite light burst for summertide phial
+newDamageType{
+    name = "#YELLOW#Lite Light#LAST# Burst (radius 1)", type = "LITE_LIGHT_BURST", --text_color = "#YELLOW#",
+    projector = function(src, x, y, type, dam, state)
+        state = initState(state)
+        useImplicitCrit(src, state)
+        src:project({type="ball", selffire=true, x=x, y=y, radius=1, range=0}, x, y, function(bx, by) -- selffire to lite our tile, reaction check will prevent damage
+            DamageType:get(DamageType.LITE).projector(src, bx, by, DamageType.LITE, 1, state) -- lite the tiles
+            local actor = game.level.map(bx, by, Map.ACTOR)
+            if actor and src:reactionToward(actor) < 0 then -- only deal damage to hostiles
+                DamageType:get(DamageType.LIGHT).projector(src, bx, by, DamageType.LIGHT, dam, state)
+            end
+        end)
+    end,
+}
-- 
GitLab