mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-27 18:41:57 +00:00
Fixed some links in the documentation
This commit is contained in:
parent
c24718edec
commit
01a04173c8
2 changed files with 2 additions and 2 deletions
|
@ -45,4 +45,4 @@ The benefits of using Github:
|
|||
|
||||
8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html. **You do NOT need to do this to test your mod locally.**
|
||||
|
||||
And now, you have successfully used Github! You can look at the next tutorial on [making a mod](tutorials/making-a-mod.md), or look at the [documentation](!general-info.md) to see how The Modding Tree's system works and to make your mod a reality.
|
||||
And now, you have successfully used Github! You can look at the next tutorial on [making a mod](making-a-mod.md), or look at the [documentation](/documentation/!general-info.md) to see how The Modding Tree's system works and to make your mod a reality.
|
||||
|
|
|
@ -52,7 +52,7 @@ Reload the page, and an upgrade will appear in the layer's tab! It will just be
|
|||
|
||||
Reload the page, and the upgrade will appear, fully formed! But it won't have any effect when you buy it! To impliment a boost, we need to go to the place where it is calculated. In this case, point gain is calculated in getPointGen in mod.js, so let's head over there.
|
||||
|
||||
It's time to explain Decimals. Decimals are a special way of handling numbers over the normal Javascript limit. They are handled in a very different way. To perform any operations, instead of doing x = x + y, you have to do x = x.add(y). x has to be a Decimal, but y can be either a Decimal or Number (regular javascript number). A more detailed description is in [!general-info.md](!general-info.md)
|
||||
It's time to explain Decimals. Decimals are a special way of handling numbers over the normal Javascript limit. They are handled in a very different way. To perform any operations, instead of doing x = x + y, you have to do x = x.add(y). x has to be a Decimal, but y can be either a Decimal or Number (regular javascript number). A more detailed description is in [!general-info.md](/documentation/!general-info.md)
|
||||
|
||||
With that knowledge in hand, what we need to do is check if the player has the upgrade, and then boost point gain if so. We can do that by inserting this line between gain being defined and returned:
|
||||
```js
|
||||
|
|
Loading…
Reference in a new issue