Early battle system

This commit is contained in:
dane committed 2023-09-13 11:04:44 -05:00
1 parent 451102e459
commit 8f1d26a0c6
4 files changed
+48 -19

No files matched your search

+3 -3
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")))))