yehric2018 / mmobot

1 stars 0 forks source link

Introduce mining to the game #12

Closed yehric2018 closed 1 year ago

yehric2018 commented 1 year ago

Now that players can equip a weapon, we can finally create something for them to do in the world: mining! Players have something to mine with: a pickaxe, or any weapon (which would be less effective), but we don't have something to actually mine.

We will begin on introducing a new entity type, Minable, which represents something that can be mined. The idea is that if you run the !attack command on a Minable, you have a chance of acquiring different types of resources based on the composition of the Minable. Such resources are as follows:

Each individual Minable will be filled a certain percentage of each of these. When attacked, you have a chance to get a certain number of these resources based on the pickaxe quality and your player's strength stat. So over time as a Minable is continuously mined, it will eventually run out of resources completely. These resources will automatically be dropped in the miner's inventory upon collection, which can later be used to craft/smith items (which we can implement later).

Steps to complete:

yehric2018 commented 1 year ago

Update: The mining functionality now works successfully in the dev server, and allows us to mine resources from a Minable. The !here command is all there is needed to implement, however we will wait a bit to implement this. Therefore, I will close this issue as completed and move the !here functionality to a different issue, since it is quite separate.