﻿# DDM 1.8 — Dynastic Command School values

# Student scope; scope:ddm_commander_teacher is the player.
# Teaching is intentionally forgiving: an average martial ruler should succeed more often than fail,
# while exceptional rulers approach but never exceed 95%. Adults who are direct children remain teachable
# but are somewhat harder to retrain than children.
ddm_commander_school_success_value = {
    value = 55
    add = { value = scope:ddm_commander_teacher.martial multiply = 1.0 }
    add = { value = scope:ddm_commander_teacher.learning multiply = 0.40 }
    add = { value = scope:ddm_commander_teacher.prowess multiply = 0.25 }
    add = { value = martial multiply = 0.30 }
    add = { value = learning multiply = 0.15 }

    if = { limit = { is_child_of = scope:ddm_commander_teacher } add = 5 }
    if = { limit = { is_adult = yes } subtract = 8 }

    if = { limit = { scope:ddm_commander_teacher = { has_trait = diligent } } add = 5 }
    if = { limit = { scope:ddm_commander_teacher = { has_trait = patient } } add = 4 }
    if = { limit = { scope:ddm_commander_teacher = { has_trait = intellect_good_3 } } add = 4 }
    if = { limit = { scope:ddm_commander_teacher = { has_trait = lazy } } subtract = 6 }
    if = { limit = { scope:ddm_commander_teacher = { has_trait = impatient } } subtract = 3 }

    min = 30
    max = 95
}
