1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#include <iostream>
#include <iomanip>
#include <Windows.h>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <string>
using namespace std;
int go_counter, generate_fighting_phrase,generate_enemy, health_potion_amount, weapon_choice;
int level_char=1;
int human_damage,enemy_damage;
string option,fight;
string name;
string fight_phrase[6]={"you wil regret this!","DIE!","you are no match for me.","you picked the wrong opponent to mess with","today is not your lucky day.","move out of my way!"};
string enemy[10]={"Goblin","Ninja","Black Knight","Evil Rock","Bandet","Baby Dragon","Black Dragon","Mutated Rat","Steel Worm","Evil Midget"};
string weapons[10]={"fist"," "," "," "," "," ", " "," "," "," "};
string potion[10]={"Large Health Potion","Medium Health Potion","Small Health Potion"," "," "," "," "," "," "," "};
int potion_amount[10]={1,0,0};
int level_max_hp[6]={10,15,20,25,30,40};
int enemy_hp[10]={10,15,20,30,40,50,60,70,80,90};
int human_hp;
|