summaryrefslogtreecommitdiffstats
path: root/example/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'example/scripts')
-rw-r--r--example/scripts/crafting.lua2
-rw-r--r--example/scripts/special_actions.lua3
2 files changed, 5 insertions, 0 deletions
diff --git a/example/scripts/crafting.lua b/example/scripts/crafting.lua
index 54e8c9a..2200081 100644
--- a/example/scripts/crafting.lua
+++ b/example/scripts/crafting.lua
@@ -85,3 +85,5 @@ function make_condensed_and_sorted_item_list(recipe)
return sorted
end
+
+mana.on_craft(on_craft)
diff --git a/example/scripts/special_actions.lua b/example/scripts/special_actions.lua
index 7cd19b5..711478f 100644
--- a/example/scripts/special_actions.lua
+++ b/example/scripts/special_actions.lua
@@ -30,3 +30,6 @@ function get_special_recharge_cost(id)
-- return the recharge cost for the special with the ID
return specialCost[id]
end
+
+mana.on_use_special(use_special)
+mana.on_get_special_recharge_cost(get_special_recharge_cost)