This commit is contained in:
a25liang
2024-07-12 16:41:42 -04:00
parent e7865b0c57
commit 50f058e7ea
57 changed files with 853 additions and 871 deletions

View File

@ -7,7 +7,6 @@
#include "input.h"
#include "rng.h"
#include "constants.h"
/* Arguments

View File

@ -23,6 +23,3 @@ void boost_atk::apply(enum race &race, int &HP, int &ATK, int &DEF,
int boost_atk::get_priority() const {
return CALC_ADD_BASE;
}

View File

@ -12,4 +12,3 @@ public:
};
#endif

View File

@ -5,7 +5,6 @@
const int BOOST_DEF = 5;
const int BOOST_DEF_DROW = 7;
boost_def::boost_def():
potion{potion_type::boost_def, -1} {}

View File

@ -151,8 +151,6 @@ result character::move_or_attack(const direction dir,
return this->attack(dir, chlist);
}
int calc_dmg(const int ATK, const int DEF) {
return ceil((100 / (100 + DEF)) * ATK);
}

View File

@ -89,7 +89,6 @@ protected:
position_list remove_from_list(const position_list &sorted_positions,
position_list excluded);
int calc_dmg(const int ATK, const int DEF);
#endif

View File

@ -4,7 +4,6 @@
#include <utility>
#include <ncurses.h>
console_output::console_output(std::ostream &cout): out{cout} {}
/* Attributes

View File

@ -53,8 +53,6 @@ const int CALC_ADD_LATER = 2;
const int CALC_MUL_LATER = 3;
const int CALC_ADD_FIXED = 4;
const int DIRECTION_CNT = 8;
// IMPORTANT: east is positive for x and SOUTH is positive for y
// initializes all directions to an int

View File

@ -1,6 +1,5 @@
#include "input.h"
const char *COMMANDS[] = {
"no", "so", "ea", "we", "ne", "nw", "se", "sw"
};

View File

@ -8,7 +8,6 @@ int main(int argc, char **argv) {
std::unique_ptr<logger> log;
std::unique_ptr<RNG> rng;
feature enabled_features = proc_args(argc, argv,
curse, in, out, log, rng);

View File

@ -1,6 +1,4 @@
#ifndef __ROOM_H__
#define __ROOM_H__
#endif

View File

@ -31,4 +31,3 @@ result shade::get_hit(const enum race &race, const int atk,
return result::hit;
}

View File

@ -23,4 +23,3 @@ void wound_atk::apply(enum race &race, int &HP, int &ATK, int &DEF,
int wound_atk::get_priority() const {
return CALC_ADD_BASE;
}