-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSpells.lua
More file actions
39 lines (32 loc) · 1.02 KB
/
Spells.lua
File metadata and controls
39 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
function CoolStepSlash (spell)
BoilerplateSpellIntro(spell)
package.cpath = "D:\\Games\\Steam\\steamapps\\common\\One Step From Eden\\OSFE_Data\\StreamingAssets\\Mods\\Default Mod\\?.dll"
print("cpath is:")
print(package.cpath)
print("path is:")
print(package.path)
require("Lib")
PrintFunction();
print("AAAA")
-- local thing = spell.ctrl.GetType("System.Reflection.Assembly").LoadFile("./CsLibrary.dll")
--[[
spell.being is the caster of the spell
spell.hitBeing is the being thing that's been hit
spell.hitTile is the tile that's been hit
See OnHit in source
]]--
-- spell.being.ctrl.mainCtrl.ExitGame()
-- Cannot do this because mainCtrl is a custom object
-- that has no moonsharp cs->lua convertion implementation
BoilerplateSpellOutro(spell)
end
function BoilerplateSpellIntro(spell)
if (spell.introSound) then
spell.being.PlayOnce(spell.introSound)
end
WaitForSeconds(spell, spell.castDuration)
end
function BoilerplateSpellOutro(spell)
WaitForSeconds(spell, spell.recoveryTime)
Outro(spell)
end