Merge Game, FlyingText, Common and table

This commit is contained in:
Cooldude2606 committed 2024-11-19 22:33:27 +00:00
1 parent 3145f7e904
commit f8c74c9dd3
66 files changed
+817 -2035

No files matched your search

@@ -2,7 +2,7 @@
-- also shows player health when a player is attacked
-- @addon Damage-Popups
local FloatingText = require("modules/exp_util/floating_text")
local FlyingText = require("modules/exp_util/flying_text")
local Event = require("modules/exp_legacy/utils/event") --- @dep utils.event
local config = require("modules.exp_legacy.config.popup_messages") --- @dep config.popup_messages
@@ -31,11 +31,10 @@ Event.add(defines.events.on_entity_damaged, function(event)
-- Outputs the message as floating text
if message then
FloatingText.print(
entity.surface,
position,
message,
text_colour
)
FlyingText.create{
text = message,
position = position,
color = text_colour,
}
end
end)