format
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
#include "input.h"
|
||||
#include "rng.h"
|
||||
|
||||
|
||||
#include "constants.h"
|
||||
|
||||
/* Arguments
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -12,4 +12,3 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -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} {}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <utility>
|
||||
#include <ncurses.h>
|
||||
|
||||
|
||||
console_output::console_output(std::ostream &cout): out{cout} {}
|
||||
|
||||
/* Attributes
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include "input.h"
|
||||
|
||||
|
||||
const char *COMMANDS[] = {
|
||||
"no", "so", "ea", "we", "ne", "nw", "se", "sw"
|
||||
};
|
||||
|
@ -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);
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
#ifndef __ROOM_H__
|
||||
#define __ROOM_H__
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -31,4 +31,3 @@ result shade::get_hit(const enum race &race, const int atk,
|
||||
|
||||
return result::hit;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user