Inline variable
This commit is contained in:
parent
4f694d0bbe
commit
f9f973b51e
1 changed files with 1 additions and 2 deletions
|
|
@ -105,8 +105,7 @@ namespace character {
|
||||||
return std::get_if<weapons>(&node.first) != nullptr;
|
return std::get_if<weapons>(&node.first) != nullptr;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (const bool is_there_bow = sheet.get_objects().find(weapons::Bow) != sheet.get_objects().cend();
|
if (count_weapons > 1 || sheet.get_objects().find(weapons::Bow) != sheet.get_objects().cend()) {
|
||||||
count_weapons > 1 || is_there_bow) {
|
|
||||||
sheet.habilete.materiel -= it_dagger->second->add_materiel(sheet.get_habilete().type);
|
sheet.habilete.materiel -= it_dagger->second->add_materiel(sheet.get_habilete().type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue