WIP varazslatok spell levels in spell book

This commit is contained in:
2024-07-22 18:05:29 +02:00
parent 6d730263f0
commit c8fd1396d1
2 changed files with 55 additions and 78 deletions
@@ -74,4 +74,22 @@ export function GetLeveledSpells(osztaly: Osztaly2E): MagasabbSzintuVarazslat[]
default:
return []
}
}
export function ClassSpells(osztaly: Osztaly2E): Varazslat[] {
switch (osztaly) {
case Osztaly2E.Vandor:
case Osztaly2E.Varazslo:
return spells.varazslo.tomor as Varazslat[]
case Osztaly2E.Illuzionista:
return spells.illuzionista.tomor as Varazslat[]
case Osztaly2E.Dalnok:
return spells.dalnok.tomor as Varazslat[]
case Osztaly2E.Druida:
return spells.druida.tomor as Varazslat[]
case Osztaly2E.Pap:
return spells.pap.tomor as Varazslat[]
default:
return [];
}
}