Page 1 of 1

DIG command changes

Posted: Tue Sep 26, 2017 5:41 am
by Jirato
DIG is undergoing a pretty significant code rewrite. If you notice any oddities with it, please post here.

Re: DIG command changes

Posted: Wed Sep 27, 2017 5:16 am
by Jirato
The first round of changes is live. Most of this can be seen in the devlog, but...

Separated the code that digs entry shafts in wilderness rooms from the code that reinforces interior mine rooms.

Changed the way mine progress is calculated:
Base progress is 0.1 per DIG attempt, + Bonus, which is 0.1 + (0.1 * Mining Skill / 500) + (0.1 * Number of Mining Abilities) (Maximum of 1.0).
Progress is a scale of 0 to 250.0. Rooms "crumble" (get deleted) after they reach 0.
Progress decays by 0.5 every 6 hours if they have mine supports or 1.0 if they do not have mine supports. Meaning a reinforced, fully dug out mine room will last a tiny bit over 4 months, whereas a non-reinforced mine room will last a little over 2 months. Note this does not count progress loss which occurs during cave-ins or gas leaks.

Rewrote the way in which mine room properties (name, description, and whether or not mounts are allowed) is updated and run the update function any time progress is added or subtracted. Mine rooms now have 10 different stages (Progress divided by 25). Mounts are allowed in stages 6 and above. Soon, other stage-based restrictions may be implemented. (See below)

In the future:
MINE command not being available until stage 5 or above.
System to calculate the "depth" of a mine (how far the room is from the entrance) to determine ore and gem availability and rarity).
With the above, the elimination of mine size requirements for gem rarity, and also removal of mine size penalties for stability/cave-ins.
Supports only being installable at stage 7, needed to progress from stage 7 to 8 or higher..
Exhausting the available ore and gems in a mine room, forcing someone to dig deeper into their mine.
Minecarts.