Updated to use the latest libgit2 1.9.0 and GCC14.
This commit is contained in:
parent
62785d463c
commit
2d81f900be
10 changed files with 29 additions and 35 deletions
|
@ -10,7 +10,6 @@
|
|||
|
||||
const auto ERROR = fmt::emphasis::bold | fg(fmt::color::red);
|
||||
|
||||
using namespace fmt;
|
||||
using namespace std;
|
||||
|
||||
GameEngine::GameEngine(int hp) : starting_hp(hp) {
|
||||
|
@ -21,13 +20,13 @@ int GameEngine::determine_damage(string &type) {
|
|||
try {
|
||||
return damage_types.at(type);
|
||||
} catch(std::out_of_range &err) {
|
||||
print(ERROR, "BAD DAMAGE TYPE {}\n", type);
|
||||
fmt::print(ERROR, "BAD DAMAGE TYPE {}\n", type);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void GameEngine::reset() {
|
||||
println("!!!!!!! RESET hit_points={}, max={}", hit_points, max_hp());
|
||||
fmt::println("!!!!!!! RESET hit_points={}, max={}", hit_points, max_hp());
|
||||
if(free_death) {
|
||||
hit_points = max_hp() * 0.5f;
|
||||
} else {
|
||||
|
@ -35,7 +34,7 @@ void GameEngine::reset() {
|
|||
hit_points = max_hp();
|
||||
}
|
||||
|
||||
println("!!!!!!!! AFTER RESET hit_points={}, max={}", hit_points, max_hp());
|
||||
fmt::println("!!!!!!!! AFTER RESET hit_points={}, max={}", hit_points, max_hp());
|
||||
|
||||
free_death = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue