def extend_skill(self, d): d["explain_en"] = starlight.en.describe_skill(objproxy(d)) d["skill_type"] = enums.skill_type(d["skill_type"]) duration_table = d["dur"].args[0] probabil_table = d["chance"].args[0] d["effect_length"] = [duration_table[d["available_time_type"]].available_time_min, duration_table[d["available_time_type"]].available_time_max] del d["available_time_type"] d["proc_chance"] = [probabil_table[d["probability_type"]].probability_min, probabil_table[d["probability_type"]].probability_max] del d["probability_type"]
def extend_skill(self, d): d["explain_en"] = starlight.en.describe_skill(objproxy(d)) d["skill_type_id"] = d["skill_type"] d["skill_type"] = enums.skill_type(d["skill_type"]) duration_table = d["dur"].args[0] probabil_table = d["chance"].args[0] d["effect_length"] = [duration_table[d["available_time_type"]].available_time_min, duration_table[d["available_time_type"]].available_time_max] del d["available_time_type"] d["proc_chance"] = [probabil_table[d["probability_type"]].probability_min, probabil_table[d["probability_type"]].probability_max] del d["probability_type"]