|
|
|
@ -102,4 +102,20 @@ namespace combat { |
|
|
|
|
|
|
|
|
|
fmt::println("\n"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RitualAction& RitualBelt::get(int index) { |
|
|
|
|
return equipped.at(index); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void RitualBelt::equip(int index, RitualAction& action) { |
|
|
|
|
equipped.insert_or_assign(index, action); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool RitualBelt::has(int index) { |
|
|
|
|
return equipped.contains(index); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void RitualBelt::unequip(int index) { |
|
|
|
|
equipped.erase(index); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|