Commit e6a4b153 authored by Maiyannah Bishop's avatar Maiyannah Bishop

[Imp] Beginning of Druid autodef for #200

parent 40e3e196
......@@ -572,11 +572,32 @@ function Berkana.Imperian.RequiresMage()
if (Character.Vitals.Profession=="mage") then return true else return false end
end
function Berkana.Imperian.RequiresDruid()
if (Character.Vitals.Profession=="druid") then return true else return false end
end
-- ============================================================================
-- ACTUAL SKILL CONSTRAINTS FUNCTIONS FOLLOW
Berkana.Imperian.Constraints = Berkana.Imperian.Constraints or {};
-- ----------------------------------------------------------------------------
-- Function: Berkana.Imperian.Constraints.Nightsight()
-- Constraints:
-- o have Nightsight, from perception, pioneering, kaido, terrestrialism,
-- trailblazing, predation, or shamanism
function Berkana.Imperian.Constraints.Nightsight()
-- This is a general skill, and also available in some class skillsets
-- Check perception first, if not, check the specific class skills
-- Don't return false until we've checked everything
-- Druid check
rtn, is_druid = pcall(Berkana.Imperian.RequiresDruid)
rtn, pioneering_nightsight = pcall(Character.Abilities.Pioneering.hasNightsight)
rtn = nil
return false
end
-- ----------------------------------------------------------------------------
-- Function: Berkana.Imperian.Constraints.CloakTattoo
-- Constraints:
......
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