Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class m{
- int settings, level;
- float dragon_pick, average_ore, accuracy, aura;
- bool varrock_armor;
- public:
- float time_up = 451.15, time_down = 218.55;
- void set_settings(int s){
- settings = s;
- if(settings > 25){settings = 25;}
- }
- void get_level(int l){
- int r[3], set;
- level = l;
- r[2] = 1;
- r[4] = 7;
- r[8] = 10;
- set = settings - settings%2;
- if(set > 16){set -= 16;}
- cout << "";
- level += r[set];
- }
- void get_aura(int a){
- if(aura > 4 || aura < 0){aura = 0;}
- aura = (0.166667*a*a*a - a*a + 3.83333 * a)/100 + 1;
- }
- void get_pickaxe(){
- dragon_pick = 2000 + 250 * settings%2;
- }
- void get_varmor(){
- varrock_armor = settings - 16 >= 0;
- }
- void avg_ore(){
- if(varrock_armor){
- average_ore = 1 + .1 + .1435 + .01435;
- }
- else{
- average_ore = 1.1;
- }
- }
- void acc(){
- float A = level * aura;
- float D = 101;
- accuracy = A*(A+1)/(A*(A+1)+D*(D+1));
- }
- float xp_rate(){
- acc();
- avg_ore();
- get_varmor();
- get_pickaxe();
- return dragon_pick * accuracy * average_ore * 65;
- }
- }mining;
- int main()
- {
- int settings, level, aura_tier;
- /*************************
- Set settings to the following:
- Dragon pickaxe: add 1
- Desert wyrm: add 2
- Obsidian golem: add 4
- Lava titan: add 8
- Elite varrock armor: add 16
- *************************/
- settings = 25;
- aura_tier = 0;
- for (int i = 80;i<=99;i++){
- mining.set_settings(settings);
- mining.get_level(i);
- mining.get_aura(aura_tier);
- cout << i << "\t" << mining.xp_rate() << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment