mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
Modifs
This commit is contained in:
parent
b63f39af8c
commit
bfab72f063
3 changed files with 209 additions and 119 deletions
|
|
@ -21,6 +21,7 @@ class Item {
|
|||
this.Id = map["Id"];
|
||||
this.Name = map["Name"];
|
||||
this.Alias = map["AltName"];
|
||||
this.AliasText = map["AltNameText"];
|
||||
this.Markdown = map["Markdown"];
|
||||
this.Discriminator = map["Discriminator"];
|
||||
}
|
||||
|
|
@ -38,6 +39,7 @@ class Item {
|
|||
"RootId": Id,
|
||||
"Name": Name,
|
||||
"AltName": Alias,
|
||||
"AltNameText": AliasText,
|
||||
"Markdown": Markdown,
|
||||
"Discriminator": Discriminator,
|
||||
};
|
||||
|
|
@ -101,9 +103,68 @@ class MonsterItem extends Item {
|
|||
}
|
||||
}
|
||||
|
||||
class MonsterItems extends Item {
|
||||
String Family;
|
||||
String Type;
|
||||
String Size;
|
||||
String Alignment;
|
||||
String Terrain;
|
||||
String Legendary;
|
||||
String ArmorClass;
|
||||
String HitPoints;
|
||||
String Speed;
|
||||
String Strength;
|
||||
String Dexterity;
|
||||
String Constitution;
|
||||
String Intelligence;
|
||||
String Wisdom;
|
||||
String Charisma;
|
||||
String SavingThrows;
|
||||
String Skills;
|
||||
String DamageVulnerabilities;
|
||||
String DamageImmunities;
|
||||
String ConditionImmunities;
|
||||
String DamageResistances;
|
||||
String Senses;
|
||||
String Languages;
|
||||
String Challenge;
|
||||
int XP;
|
||||
|
||||
MonsterItems.fromMap(Map<String, dynamic> map)
|
||||
: super.fromMap(map) {
|
||||
this.Family = map["MonsterItems_Family"];
|
||||
this.Type = map["Type"];
|
||||
this.Size = map["Size"];
|
||||
this.Alignment = map["Alignment"];
|
||||
this.Terrain = map["Terrain"];
|
||||
this.Legendary = map["Legendary"];
|
||||
this.ArmorClass = map["ArmorClass"];
|
||||
this.HitPoints = map["HitPoints"];
|
||||
this.Speed = map["Speed"];
|
||||
this.Strength = map["Strength"];
|
||||
this.Dexterity = map["Dexterity"];
|
||||
this.Constitution = map["Constitution"];
|
||||
this.Intelligence = map["Intelligence"];
|
||||
this.Wisdom = map["Wisdom"];
|
||||
this.Charisma = map["Charisma"];
|
||||
this.SavingThrows = map["SavingThrows"];
|
||||
this.Skills = map["Skills"];
|
||||
this.DamageVulnerabilities = map["DamageVulnerabilities"];
|
||||
this.DamageImmunities = map["DamageImmunities"];
|
||||
this.ConditionImmunities = map["ConditionImmunities"];
|
||||
this.DamageResistances = map["DamageResistances"];
|
||||
this.Senses = map["Senses"];
|
||||
this.Languages = map["Languages"];
|
||||
this.Challenge = map["Challenge"];
|
||||
this.XP = map["XP"];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Item itemFromMap(Map<String, dynamic> map) {
|
||||
switch(map["Discriminator"]) {
|
||||
case "MonsterItem": return MonsterItem.fromMap(map);
|
||||
case "MonsterItems": return MonsterItems.fromMap(map);
|
||||
}
|
||||
return Item.fromMap(map);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue