give every data field an initial value and update zig structs
This commit is contained in:
+34
-8
@@ -17,6 +17,8 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
preis: f64 = 0,
|
||||
}),
|
||||
Ruestung: foundry.Item("Ruestung", struct {
|
||||
angelegt: bool = false,
|
||||
|
||||
gewicht: f64 = 0,
|
||||
preis: f64 = 0,
|
||||
|
||||
@@ -33,6 +35,8 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
gesamt_behinderung: f64 = 0,
|
||||
}),
|
||||
Bewaffnung: foundry.Item("Bewaffnung", struct {
|
||||
angelegt: bool = false,
|
||||
|
||||
gewicht: f64 = 0,
|
||||
preis: f64 = 0,
|
||||
|
||||
@@ -52,7 +56,7 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
distanzklasse: String = "",
|
||||
kampftalente: String = "",
|
||||
|
||||
laenge: u8 = 0,
|
||||
laenge: u64 = 0,
|
||||
|
||||
zweihaendig: bool = false,
|
||||
werfbar: bool = false,
|
||||
@@ -85,7 +89,7 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
fernkampfwaffe: struct {
|
||||
aktiv: bool = false,
|
||||
|
||||
basis: String = "1d4",
|
||||
basis: String = "1d6 + 1",
|
||||
laden: u8 = 0,
|
||||
|
||||
reichweite1: u8 = 0,
|
||||
@@ -111,12 +115,12 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
natur,
|
||||
wissens,
|
||||
handwerks,
|
||||
},
|
||||
} = .koerperliche,
|
||||
behinderung: String = "",
|
||||
|
||||
attribute1: Attribute,
|
||||
attribute2: Attribute,
|
||||
attribute3: Attribute,
|
||||
attribute1: Attribute = .MU,
|
||||
attribute2: Attribute = .MU,
|
||||
attribute3: Attribute = .MU,
|
||||
|
||||
talentwert: u8 = 0,
|
||||
}),
|
||||
@@ -125,7 +129,7 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
waffenlos,
|
||||
nahkampf,
|
||||
fernkampf,
|
||||
},
|
||||
} = .waffenlos,
|
||||
|
||||
steigern: enum {
|
||||
A_Star,
|
||||
@@ -137,7 +141,7 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
F,
|
||||
G,
|
||||
H,
|
||||
},
|
||||
} = .A_Star,
|
||||
|
||||
behinderung: String = "",
|
||||
beschreibung: String = "",
|
||||
@@ -146,6 +150,28 @@ pub const ItemCompendium = foundry.Compendium(.Item, union(enum) {
|
||||
attacke: u8 = 0,
|
||||
parade: u8 = 0,
|
||||
}),
|
||||
Sonderfertigkeit: foundry.Item("Sonderfertigkeit", struct {
|
||||
kategorie: enum {
|
||||
allgemein,
|
||||
kampf,
|
||||
magisch,
|
||||
klerikal,
|
||||
} = .allgemein,
|
||||
|
||||
kosten: u64 = 0,
|
||||
verbreitung: u64 = 0,
|
||||
|
||||
beschreibung: String = "",
|
||||
}),
|
||||
VorNachteil: foundry.Item("VorNachteil", struct {
|
||||
kategorie: enum {
|
||||
vorteil,
|
||||
nachteil
|
||||
} = .vorteil,
|
||||
|
||||
kosten: u64 = 0,
|
||||
beschreibung: String = "",
|
||||
}),
|
||||
});
|
||||
|
||||
const Attribute = enum {
|
||||
|
||||
Reference in New Issue
Block a user