Commit e867751f authored by Maiyannah Bishop's avatar Maiyannah Bishop

[Imp] Clean up all the tattoo constraints for autodef #200

parent 39916150
......@@ -585,13 +585,14 @@ Berkana.Imperian.Constraints = Berkana.Imperian.Constraints or {};
--
-- TODO: Can't do when arms are broken, add that as a constraint
function Berkana.Imperian.Constraints.CloakTattoo()
has_cloak = pcall(Character.Tattoos.hasCloak)
has_eqbal = pcall(Berkana.Imperian.RequiresBalEq)
has_cloak = Character.Tattoos.hasCloak()
has_eqbal = Berkana.Imperian.RequiresBalEq()
if (has_cloak == true) and (has_eqbal == true) then
has_cloak, has_eqbal = nil, nil
return true
else
has_cloak, has_eqbal = nil, nil
return false
end
end
......@@ -603,13 +604,16 @@ end
--
-- TODO: Can't do when arms are broken, add that as a constraint
function Berkana.Imperian.Constraints.MindsEyeTattoo()
has_mindseye = pcall(Character.Tattoos.hasMindsEye)
has_eqbal = pcall(Berkana.Imperian.RequiresBalEq)
has_mindseye = Character.Tattoos.hasMindsEye()
has_eqbal = Berkana.Imperian.RequiresBalEq()
Valkryja.Debug("In MINDSEYE constraints,"..
"has_mindseye="..tostring(has_mindseye)..", has_eqbal="..tostring(has_eqbal), false)
if (has_mindseye == true) and (has_eqbal == true) then
has_mindseye, has_eqbal = nil, nil
return true
else
has_mindseye, has_eqbal = nil, nil
return false
end
end
......@@ -621,13 +625,16 @@ end
--
-- TODO: Can't do when arms are broken, add that as a constraint
function Berkana.Imperian.Constraints.MossTattoo()
has_moss = pcall(Character.Tattoos.hasMoss)
has_eqbal = pcall(Berkana.Imperian.RequiresBalEq)
has_moss = Character.Tattoos.hasMoss()
has_eqbal = Berkana.Imperian.RequiresBalEq()
Valkryja.Debug("In MOSS constraints,"..
"has_moss="..tostring(has_moss)..", has_eqbal="..tostring(has_eqbal), false)
if (has_moss == true) and (has_eqbal == true) then
has_moss, has_eqbal = nil, nil
return true
else
has_moss, has_eqbal = nil, nil
return false
end
end
......@@ -639,8 +646,10 @@ end
--
-- TODO: Can't do when arms are broken, add that as a constraint
function Berkana.Imperian.Constraints.OwlTattoo()
has_owl = pcall(Character.Tattoos.hasOwl)
has_eqbal = pcall(Berkana.Imperian.RequiresBalEq)
has_owl = Character.Tattoos.hasOwl()
has_eqbal = Berkana.Imperian.RequiresBalEq()
Valkryja.Debug("In OWL constraints,"..
"has_owl="..tostring(has_owl)..", has_eqbal="..tostring(has_eqbal), false)
if (has_owl == true) and (has_eqbal == true) then
has_owl, has_eqbal = nil, nil
return true
......@@ -661,7 +670,7 @@ function Berkana.Imperian.Constraints.MoonTattoo()
has_moon = Character.Tattoos.hasMoon()
has_eqbal = Berkana.Imperian.RequiresBalEq()
Valkryja.Debug("In MOON constraints,"..
"has_moon="..tostring(has_moon)..", has_eqbal="..tostring(has_eqbal), true)
"has_moon="..tostring(has_moon)..", has_eqbal="..tostring(has_eqbal), false)
if (has_moon == true) and (has_eqbal == true) then
has_moon, has_eqbal = nil, nil
return true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment