Source code for VegansDeluxe.rebuild.Skills.Medic

from VegansDeluxe.core import RegisterState
from VegansDeluxe.core import StateContext
from VegansDeluxe.core import Session
from VegansDeluxe.core.Skills.Skill import Skill
from VegansDeluxe.core.Translator.LocalizedString import ls
from VegansDeluxe.rebuild.Items.Stimulator import Stimulator


[docs]class Medic(Skill): id = 'medic' name = ls("skill_medic_name") description = ls("skill_medic_description")
@RegisterState(Medic) def register(root_context: StateContext[Medic]): session: Session = root_context.session source = root_context.entity source.items.append(Stimulator())