from LivinGrimoirePacket.LivinGrimoire import Skill, Kokoro
class DiCMDV1(Skill):
def __init__(self):
super().__init__()
self.modes = set()
def addModes(self, *modes: str):
for m in modes:
if isinstance(m, str):
self.modes.add(m)
# Override
def input(self, ear: str, skin: str, eye: str):
if ear in self.modes:
self.setVerbatimAlg(4, ear) # # 1->5 1 is the highest algorithm priority
def skillNotes(self, param: str) -> str:
if param == "notes":
return "lets mode changes through for hardware skills"
elif param == "triggers":
return "anything in the hashset attribute"
return "note unavalible"
class DiCMDV2(Skill):
def __init__(self):
super().__init__()
self.modes = set()
def addModes(self, *modes: str):
for m in modes:
if isinstance(m, str):
self.modes.add(m)
# Override
def input(self, ear: str, skin: str, eye: str):
self._kokoro.toHeart["cmdv1"] = ""
if ear in self.modes:
self._kokoro.toHeart["cmdv1"] = ear
def skillNotes(self, param: str) -> str:
if param == "notes":
return "lets mode changes through for hardware skills"
elif param == "triggers":
return "anything in the hashset attribute"
return "note unavalible"
class DiKokoroOut(Skill):
def __init__(self):
super().__init__()
self.set_skill_type(3) # continuous skill
self.set_skill_lobe(2) # hardware chobits
def input(self, ear: str, skin: str, eye: str):
t = self._kokoro.toHeart["cmdv1"]
if len(t)>0:
print(t)
def skillNotes(self, param: str) -> str:
if param == "notes":
return "prints to console"
elif param == "triggers":
return "automatic for any input"
return "note unavalible"