-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/HilkopterBob/TA
- Loading branch information
Showing
10 changed files
with
200 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"type": "object", | ||
"patternProperties": { | ||
"^[A-Z].[a-z][0-9]{1,}":{ | ||
"$ref": "#/definitions/Effect" | ||
} | ||
}, | ||
"definitions": { | ||
"Effect":{ | ||
"type":"object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Der Name des Effektes" | ||
}, | ||
"descr":{ | ||
"type": "string", | ||
"description": "Die Beschreibung des Effektes" | ||
}, | ||
"etype":{ | ||
"type":"string", | ||
"description": "Der Effekttyp", | ||
"enum": ["good","bad","evil"] | ||
}, | ||
"value":{ | ||
"type":"integer", | ||
"description": "Die Menge die ein Wert durch diesen Effekt beeinfluss wird" | ||
}, | ||
"infl":{ | ||
"type":"string", | ||
"description": "Der Wert der durch diesen Effekt beeinflusst wird" | ||
} | ||
}, | ||
"required": ["name","descr","etype","value","infl"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"type": "object", | ||
"required": ["Player"], | ||
"properties": { | ||
"Player":{ | ||
"$ref": "#/definitions/Entity" | ||
} | ||
}, | ||
"patternProperties": { | ||
"^[A-Z].[a-z]{1,}":{ | ||
"$ref": "#/definitions/Entity" | ||
} | ||
}, | ||
"definitions": { | ||
"Entity":{ | ||
"type":"object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Der Name der Entität ingame", | ||
"minLength": 0, | ||
"maxLength": 30 | ||
}, | ||
"hp":{ | ||
"type": "integer", | ||
"description": "Die Lebenspunkte der Entität", | ||
"minimum": 0, | ||
"maximum": 100 | ||
}, | ||
"wealth":{ | ||
"type":"integer", | ||
"description": "Der Wohlstandswert der Entität", | ||
"minimum": 0, | ||
"maximum": 100 | ||
}, | ||
"inv":{ | ||
"type":"array", | ||
"description": "Eine Liste aller Inventargegenstände der Entität" | ||
}, | ||
"xp":{ | ||
"type":"integer", | ||
"description": "Die Erfahrungspunkte der Entität", | ||
"minimum": 0, | ||
"maximum": 100 | ||
}, | ||
"ptype":{ | ||
"type":"integer", | ||
"description": "Der Typ der Entität (Friendly/Harmfull)" | ||
}, | ||
"geffects":{ | ||
"type":"array", | ||
"description": "Eine Liste aller positiven Effekte(Buffs) auf der Entität" | ||
}, | ||
"beffects":{ | ||
"type":"array", | ||
"description": "Eine Liste aller negativen Effekte(debuffs) auf der Entität" | ||
}, | ||
"eeffects":{ | ||
"type":"array", | ||
"description": "Eine Liste aller negativen Boss Effekte(debuffs) auf der Entität" | ||
}, | ||
"location":{ | ||
"type":"string", | ||
"description": "An welchem Ort Befindet sich die Entität grade" | ||
}, | ||
"level":{ | ||
"type":"integer", | ||
"description": "Welche Stufe hat die Entität" | ||
} | ||
}, | ||
"required": ["name","hp","wealth","inv","xp","ptype","geffects","beffects","eeffects","location","level"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"type": "object", | ||
"patternProperties": { | ||
"^[A-Z].[a-z]{1,}":{ | ||
"$ref": "#/definitions/Item" | ||
} | ||
}, | ||
"definitions": { | ||
"Item":{ | ||
"type":"object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"description": "Der Itemtyp", | ||
"enum": ["weapon","tool","potion","misc"] | ||
}, | ||
"dmg":{ | ||
"type": "integer", | ||
"description": "Der Schaden des Items", | ||
"minimum": 0, | ||
"maximum": 100 | ||
}, | ||
"condition":{ | ||
"type":"integer", | ||
"description": "Der Zustand des Items", | ||
"minimum": 0, | ||
"maximum": 100 | ||
}, | ||
"effects":{ | ||
"type":"array", | ||
"description": "Eine Liste aller Special Effekte auf dem Item" | ||
}, | ||
"useable":{ | ||
"type":"boolean", | ||
"description": "Ist das Item benutzbar?" | ||
}, | ||
"equipable":{ | ||
"type":"boolean", | ||
"description": "Ist das Item ausrüstbar?" | ||
}, | ||
"questitem":{ | ||
"type":"boolean", | ||
"description": "Ist das Item ein Questitem" | ||
} | ||
}, | ||
"required": ["type","dmg","condition","effects","useable","equipable","questitem"] | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"$schema": "../.github/workflows/itemschema.json", | ||
"Sword" : { | ||
"type": "weapon", | ||
"dmg": 10, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters