r/PixelBlacksmith • Developer! (Android) • Jun 01 '16

Formula List

Since the game relies pretty heavily on formulas and calculations, I thought it would make sense to list some of them here.

Let me know if you want any more, and I'll put them up.


Bonus Coins##

Formula: Coins Bonus + (0.5 * Times Prestiged) = Coins Multiplier

Example: 1.55 + (0.5 * 3) = 3.05 = 305% = 205% coins increase

Variables:

  • Coins Bonus = The Coins Bonus upgrade converted to a multiplier. E.g. +55% -> 1.55.

  • Times Prestiged = Number of times prestiged, not current prestige level.

  • Coins Multiplier = Value to multiply gained coins by.

Notes:

  • Coins are multiplied by the resulting multiplier, and are rounded to the nearest number. E.g 10 coins * 3.05 = 30.5 = 31 coins.


Bonus XP##

Formula: XP Bonus * (0.75 ^ Times Prestiged) = XP Multiplier

Example: 1.55 * (0.75 ^ 3) = 0.654 = 34.6% XP reduction

Variables:

  • XP Bonus = The XP Bonus upgrade converted to a multiplier. E.g. +55% -> 1.55.

  • Times Prestiged = Number of times prestiged, not current prestige level.

  • XP Multiplier = Value to multiply gained XP by. If it's above 1, it'll be an XP increase, otherwise it'll be an XP decrease.

Notes:

  • XP is multiplied by the resulting multiplier, and rounded up. E.g 10XP * 0.654 = 6.54 = 7XP.


Hero Adventure Success Chance##

Formula: (Hero Strength / Difficulty) * 100 = Difference Percent. If Hero Strength < Difficulty, Difference Percent - 50 = Success Chance, otherwise Difference Percent / 2 = Success Chance.

Examples (for a 100 Difficulty adventure, and varying Hero Strength):

  • (30 / 100) * 100 = 30, 30 - 50 = 0% success chance.

  • (80 / 100) * 100 = 80, 80 - 50 = 30% success chance.

  • (100 / 100) * 100 = 100, 100 / 2 = 50% success chance.

  • (150 / 100) * 100 = 150, 150 / 2 = 75% success chance.

  • (200 / 100) * 100 = 200, 200 / 2 = 100% success chance.

Variables:

  • Hero Strength = The hero's total strength, including all bonuses / preferences.

  • Difficulty = Difficulty of the adventure.

  • Difference Percent = Difference between strength + difficulty, used during calculations.

  • Success Chance = Chance of successfully completing adventure.

Notes:

  • A bit of a tricky formula, note that if Hero Strength & Difficulty are the same, there is exactly a 50% chance of success.


Level##

Formula: 0.1 * sqrt(XP) = Level

Example: 0.1 * sqrt(123456) = 35.13 = 35 (and 13% to 36)

Variables:

  • XP = Current amount of XP.

  • Level = Player level.

Notes:

  • The required XP for a level formula (Level / 0.1) ^ 2 = XP can be derived from this.


Quest Reward##

DifficultyXPPagesItem QuantityCoin Quantity
Easy9 * Player Level25% Chance1 - 1225 - 1050
Medium15 * Player Level50% Chance2 - 2450 - 2100
Hard35 * Player Level1 Page4 - 48100 - 4200
Elite75 * Player Level2 Page6 - 72150 - 6300

Visitor Trade Bonus##

Formula:

  • Item Value = Item Base Value * (Coin Multiplier * State Multiplier * Tier Multiplier * Type Multiplier)

  • Final Item Value = Item Value + Gem Value, and * 0.5 if unfinished, rounded down.

Example (a 25 coin unfinished item, with a +55% coins bonus, and 5% bonus in all 3 preferences):

  • 25 * (1.55 * 1.05 * 1.05 * 1.05) = 44.86 coins

  • 44.86 * 0.5 = 22.43 coins = 22 coins

Variables:

  • Coin Multiplier = Formula described above as "Bonus Coins".

  • State / Tier / Type Multiplier= The visitor's multiplier (e.g. 1.05 for 5% preference).

  • Item Base Value = Item value when selling from inventory.

  • Gem Value = If a gem is used, the value of that gem.


Worker Resources##

  • Bonus resources: Resource Quantity * Food Bonus

  • Pages: Food Bonus % chance, e.g a 40% food boost = 40% chance for page.

11 Upvotes

5 comments sorted by

1

u/lukazaz Jun 27 '16

I'm grinidng to get lvl >100 on prestige 3 (also almost finish the book collection)

BUT what is Hero Adventure Success Chance (Unreleased) and how can I get a preview of this :|

1

u/JakeSteam Developer! (Android) Jun 27 '16

Hey!

Heroes are in the 1.7 build. I'm still working on it, I'm hoping to start beta testing it within the next week, and will be releasing shortly after that.

Thanks, Jake

1

u/lukazaz Jun 27 '16

Seeing as I have a pretty good setup before I go for my prestige 4 I will wait for this... also I'm still working on finishing the collection... 18k (seconds? a bit to much?)

Current save will work with update right?

2

u/JakeSteam Developer! (Android) Jun 28 '16

Current save will work with the update, yep.

Jake

2

u/SweetGoat Super Helpful! Jun 01 '16

Thanks for posting these!