made efficent handler for spells

added routes for spells maintanance
updated model for spells with more fields, default values
moved update handlers inside spell and skill components
This commit is contained in:
2025-01-18 20:59:54 +01:00
parent 82690bfe67
commit 3c8e415359
9 changed files with 464 additions and 184 deletions
+2 -2
View File
@@ -65,10 +65,10 @@ func CheckSpell(zauber *Zauber, autocreate bool) (*gsmaster.Spell, error) {
stammF.System = "midgard"
stammF.Name = zauber.Name
stammF.Beschreibung = zauber.Beschreibung
stammF.AP = 1
stammF.AP = "1"
stammF.Stufe = 1
stammF.Wirkungsziel = "Zauberer"
stammF.Reichweite = 15
stammF.Reichweite = "15 m"
stammF.Quelle = zauber.Quelle
//fmt.Println(stammF)