Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- speed = 2400;
- fortune = 870;
- effi = 85;
- hardness = 1500;
- mithMult = 3.5;
- realismFactor = 0.5;
- miningTime = round(hardness * 30 / speed);
- if miningTime > 4
- minedPS = 20 / miningTime;
- else
- minedPS = 20 / 4;
- end
- minedOut = sprintf('You will mine %5.1f blocks per second.\n', minedPS);
- if effi < 20
- increaseMinedPerc = 10 + effi * 0.4;
- elseif effi < 40
- increaseMinedPerc = 2 * (10 + effi * 0.4);
- elseif effi < 60
- increaseMinedPerc = 3 * (10 + effi * 0.4);
- elseif effi < 80
- increaseMinedPerc = 4 * (10 + effi * 0.4);
- elseif effi < 100
- increaseMinedPerc = 5 * (10 + effi * 0.4);
- else
- increaseMinedPerc = 6 * (10 + effi * 0.4);
- end
- effiOut = sprintf('Your efficient miner increases the number of blocks you mine by %5.2f%%.\n', increaseMinedPerc);
- minedPSTot = minedPS * (1 + increaseMinedPerc / 100);
- mithProd = minedPSTot * (1 + fortune / 100) * mithMult;
- mithPH = mithProd * 3600;
- moneyPH = mithPH * 10;
- real_mithPH = mithPH * realismFactor;
- real_moneyPH = moneyPH * realismFactor;
- finalOut = sprintf('You will mine an average of %5.2f blocks per second, and will produce a total of %5.2f mithril and %5.2f coins per hour. \nRealistically, you will produce a total of %5.2f mithril and %5.2f coins per hour', minedPSTot, mithPH, moneyPH, real_mithPH, real_moneyPH);
- disp(finalOut)
Advertisement
Add Comment
Please, Sign In to add comment