aboutsummaryrefslogtreecommitdiff
path: root/src/char_jugg.moon
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_jugg.moon')
-rw-r--r--src/char_jugg.moon30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/char_jugg.moon b/src/char_jugg.moon
new file mode 100644
index 0000000..4adc9bb
--- /dev/null
+++ b/src/char_jugg.moon
@@ -0,0 +1,30 @@
+char = require "char"
+reg = require "ability_reg"
+require "a_test"
+
+mod = ...
+
+mod.char = {
+ name: "Juggernaut",
+ default_position:1,
+ default_abilities: {
+ reg.Everything
+ },
+ default_maxhp: 100,
+ default_hp: 100,
+ default_maxstamina: 3,
+ default_stamina: 3,
+ default_maxmana: 1,
+ default_mana: 1,
+ sprite:"data/character_1.png"
+}
+
+for k,v in pairs(mod.char)
+ mod[k] = v
+
+print("reg:",reg)
+assert(mod.char.default_abilities[1], "Tumble not found in reg")
+char.classes[mod.char.name] = mod.char
+print("After adding Tumbler, char.classes is", char.classes)
+
+mod