venturesFORT property
get ventures FORT stats of profile
Implementation
Map<String, int> get venturesFORT {
Map<String, int> _venturesFORT = {
"fortitude": 0,
"resistance": 0,
"offense": 0,
"tech": 0,
};
for (ProfileItem item in items.where((i) =>
i.templateId.contains("Stat:") && i.templateId.contains("phoenix"))) {
if (item.templateId.contains("fortitude")) {
_venturesFORT["fortitude"] = item.quantity;
} else if (item.templateId.contains("resistance")) {
_venturesFORT["resistance"] = item.quantity;
} else if (item.templateId.contains("offense")) {
_venturesFORT["offense"] = item.quantity;
} else if (item.templateId.contains("technology")) {
_venturesFORT["tech"] = item.quantity;
}
}
return _venturesFORT;
}