And so it begins...
This commit is contained in:
commit
1b8091e26b
55 changed files with 962 additions and 0 deletions
35
mods/artifact_characters/init.lua
Normal file
35
mods/artifact_characters/init.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
|
||||
local ns = artifact
|
||||
|
||||
function ns.apply_key(m)
|
||||
m.object:set_properties {
|
||||
textures = {"artifact_key.png"},
|
||||
visual_size = vector.new(1,1,1) *0.88,
|
||||
eye_height = 1.6
|
||||
}
|
||||
m.eye_height = 1.6
|
||||
end
|
||||
|
||||
function ns.apply_vix(m)
|
||||
m.object:set_properties {
|
||||
textures = {"artifact_vix.png"},
|
||||
visual_size = vector.new(1,1,1) *0.8,
|
||||
eye_height = 1.5
|
||||
}
|
||||
m.eye_height = 1.5
|
||||
end
|
||||
|
||||
function ns.swap_character(m)
|
||||
if m.character == "vix" then
|
||||
m:set_character("key")
|
||||
ns.apply_key(m)
|
||||
else
|
||||
m:set_character("vix")
|
||||
ns.apply_vix(m)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
include "key.lua"
|
||||
include "vix.lua"
|
||||
Loading…
Add table
Add a link
Reference in a new issue