Skip to content

Upgrades

FifthTundraG edited this page Jun 17, 2024 · 3 revisions

This page is intended primarily for development purposes only.
This page is for the 0.6 Beta version and not for the current 0.5.2 Main version

Explanation

Upgrades are based entirely on a system of ID's, wherein every upgrade has an ID, and that ID has specific properties assigned to it, like price, name, quotes, and images. These ID's are actually references to items in an array, and the upgrade handler creates an upgrade by searching through arrays that store data about the upgrades (price, name, quotes, and images) with the given index. Below is a table showing ID's and the data associated with them (WIP).

ID Name Price Quote Image
0 Reinforced Keys 100 press harder reinforced-keys.png
1 Obsidian Keys 500 so heavy they're always pressed obsidian-keys.png
2 Osmium Keys 10000 that's very heavy osmium-keys.png
3 10 finger typing 100000 efficiency 10-finger-typing.png
4 keyboard5 10000000 temp undefined
5 Hardwood Walking Stick 1000 nonna dat softwood junk hardwood-walking-stick.png
6 Rocking Chair 5000 newest addition to the porch* undefined
7 grandpa3 50000 temp undefined
8 grandpa4 5000000 temp undefined
9 shotgun 500000000 grandpa's precious* undefined
10 Pig Slop 11000 Wait, what have we been feeding them before now? ranch-upgrade1.png
11 ranch2 55000 temp undefined
12 ranch3 550000 temp undefined
13 ranch4 55000000 temp undefined
14 ranch5 5500000000 temp undefined
15 LED Display 120000 World's greatest leap in digital technology tv-upgrade1.png
16 television2 600000 temp undefined
17 television3 6000000 temp undefined
18 television4 600000000 temp undefined
19 television5 60000000000 temp undefined
20 Medkits 1300000 Constant supply of Band-Aids in case of emergency worker-upgrade1.png
21 worker2 6500000 temp undefined
22 worker3 65000000 temp undefined
23 safe 6500000000 you can keep your cookies even safer!! safe.png
24 worker5 650000000000 temp undefined
25 200 dollar bills 14000000 I'm sure the federal reserve will be okay with this...* undefined
26 worker2 70000000 temp undefined
27 worker3 700000000 temp undefined
28 worker4 70000000000 temp undefined
29 worker5 7000000000000 temp undefined
30 church1 200000000 temp undefined
31 church2 1000000000 temp undefined
32 church3 10000000000 temp undefined
33 church4 1000000000000 temp undefined
34 church5 100000000000000 temp undefined

This table may not always be up to date, so it's best to view the source code for a fully updated version. The names of the arrays are shown below.
-----------
ID -> Indices of any of the following arrays.
Name -> upgrades.names
Price -> upgrades.prices
Quote -> upgrades.quotes
Image -> upgrades.img
-----------

Clone this wiki locally