Skip to content

Commit

Permalink
validate
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Nov 4, 2024
1 parent 92d3237 commit 4d0b632
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions validate.lic
Original file line number Diff line number Diff line change
Expand Up @@ -141,28 +141,6 @@ class DRYamlValidator
error("gem_pouch_low_value defined, but no low_value_gem_pouch_container for low value pouches to go into")
end

def assert_that_gear_has_deprecated_is_leather_entry(settings)
warn_gear_entries = []
settings.gear.each { |key| warn_gear_entries << key if key[:is_leather] }

unless warn_gear_entries.none?
warn_gear_entries.each do |entry|
warn("Gear entry #{entry} has deprecated is_leather setting.")
end
end
end

def assert_that_gear_has_incorrect_worn_entry(settings)
error_gear_entries = []
settings.gear.each { |key| error_gear_entries << key if key[:worn] }

unless error_gear_entries.none?
error_gear_entries.each do |entry|
error("Gear entry #{entry} has incorrect worn setting. The correct setting name is is_worn.")
end
end
end

def assert_that_sorcery_is_dangerous(settings)
return unless settings.crafting_training_spells_enable_sorcery
return if settings.crafting_training_spells_enable_sorcery_squelch_warning
Expand Down Expand Up @@ -246,7 +224,7 @@ class DRYamlValidator
return unless settings.priority_weapons

settings.priority_weapons
# .reject { |skill_name| @valid_weapon_skills.include?(skill_name) }
.reject { |skill_name| @valid_weapon_skills.include?(skill_name) }
.each { |skill_name| error("Invalid priority_weapons: skill name '#{skill_name}'. Valid skills are '#{@valid_weapon_skills}'") }
end

Expand Down

0 comments on commit 4d0b632

Please sign in to comment.