spell.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. export interface Spell {
  2. id: number;
  3. isCustom: boolean;
  4. german: string;
  5. english: string;
  6. classes: string[];
  7. level: number;
  8. cost: string;
  9. timeToCast: number;
  10. duration: number;
  11. canRitual: string;
  12. needsConcentration: boolean;
  13. needsVerbal: boolean;
  14. needsSomatic: boolean;
  15. needsMaterial: boolean;
  16. school: string;
  17. description: string;
  18. needsAttackRoll: boolean;
  19. needsSavingThrow: boolean;
  20. savingThrowAttribute?: string;
  21. isRanged: boolean;
  22. range?: number;
  23. hasAreaOfEffect: boolean;
  24. radius?: number;
  25. areaOfEffectType?: string;
  26. doesDamage: boolean;
  27. attackBonus?: string;
  28. damage: Damage[];
  29. doesHeal: boolean;
  30. heal: Heal;
  31. }
  32. // Additions
  33. // Number of targets
  34. // duration
  35. // cost um 1 minute/10 minutes/1 hour/8 hours/24 hours zu casten erhöhen
  36. // Material
  37. // Better way of handling the text.
  38. // come up with a way to mark that it is selected as a ritual
  39. interface Damage {
  40. diceNumber: string;
  41. diceType: string;
  42. damageType: string;
  43. additionalDamage?: string;
  44. }
  45. // additions
  46. interface Heal {
  47. diceNumber: string;
  48. diceType: string;
  49. additionalHeal?: number;
  50. }