Current section
Files
Jump to
Current section
Files
lib/ecs/system/weapon.ex
# defmodule Tesseract.ECS.System.Weapon do
# @behaviour Tesseract.ECS.System
# def process_action({:take_damage, params}, health_state, entity_state) do
# # current_health = TimeValue.get_value(health_state)
# # damage = Keyword.fetch!(params, :damage)
# # health_state |> TimeValue.set_value(current_health - damage, 0, 0)
# end
# end