|
@@ -600,8 +600,8 @@ void write_bosshp(WINDOW* BossHP,int hp,int hpmax,std::string name){
|
|
|
|
|
|
|
|
|
|
|
|
-void Victory(std::string name,int score,char level,int chflag){
|
|
|
- score+=1500*atoi(&level);
|
|
|
+void Victory(std::string name,int score,int level,int chflag){
|
|
|
+ score+=1500*level;
|
|
|
WINDOW *victory;
|
|
|
|
|
|
victory=newwin(19,32,7,17);
|
|
@@ -609,7 +609,7 @@ void Victory(std::string name,int score,char level,int chflag){
|
|
|
wattron(victory,COLOR_PAIR(1));
|
|
|
mvwprintw(victory,2,4,"YOU DEFEATED %s!",name.c_str());
|
|
|
wattron(victory,COLOR_PAIR(3));
|
|
|
- mvwprintw(victory,4,5,"+ %i pts!",atoi(&level)*1500);
|
|
|
+ mvwprintw(victory,4,5,"+ %i pts!",level*1500);
|
|
|
wattron(victory,COLOR_PAIR(1));
|
|
|
mvwprintw(victory,4,5,"YOU WON!");
|
|
|
wattron(victory,COLOR_PAIR(3));
|
|
@@ -1494,8 +1494,8 @@ void resetbosses(boss* Bosses,boss& boss1,player& player1){
|
|
|
player1.weaponclass=1;
|
|
|
}
|
|
|
|
|
|
-void Victory_bossrush(std::string name,int score,char level,int chflag){
|
|
|
- score+=1500*atoi(&level);
|
|
|
+void Victory_bossrush(std::string name,int score,int level,int chflag){
|
|
|
+ score+=1500*level;
|
|
|
WINDOW *victory;
|
|
|
|
|
|
victory=newwin(19,32,7,17);
|
|
@@ -1503,7 +1503,7 @@ void Victory_bossrush(std::string name,int score,char level,int chflag){
|
|
|
wattron(victory,COLOR_PAIR(1));
|
|
|
mvwprintw(victory,2,5,"YOU DEFEATED %s!",name.c_str());
|
|
|
wattron(victory,COLOR_PAIR(3));
|
|
|
- mvwprintw(victory,4,5,"+ %i pts!",atoi(&level)*1500);
|
|
|
+ mvwprintw(victory,4,5,"+ %i pts!",level*1500);
|
|
|
wattron(victory,COLOR_PAIR(1));
|
|
|
mvwprintw(victory,4,5,"YOU WON!");
|
|
|
wattron(victory,COLOR_PAIR(3));
|