Early battle system

This commit is contained in:
2023-09-13 11:04:44 -05:00
parent 451102e459
commit 8f1d26a0c6
4 changed files with 48 additions and 19 deletions

View File

@@ -19,7 +19,7 @@
(deftest basic
(run-e age-up :age)
(is (= 28 (age (find-entity-by :name "Dane")))))
(is (= 28 (age (find-by :name "Dane")))))
(defcomponent alignment)
(defcomponent health)
@@ -45,5 +45,5 @@
(deftest full
(run-e damage-evil-creatures [:alignment :health] 2)
(is (= 2 (health (find-entity-by :name "Fey"))))
(is (= 8 (health (find-entity-by :name "Goblin")))))
(is (= 2 (health (find-by :name "Fey"))))
(is (= 8 (health (find-by :name "Goblin")))))