Mining Demo

by Mega fart cannon
A demo on how to make a proper Mining System. You can also substitute this to make a Fishing System!
ID:129744
 

Version 2:
Commented Extra.dm
Added new proc, MineMultiple()
Lowered Probability of minerals
Fixed it so you can't move while mining
/mob/pc is now set to /mob

Version 1:
First Release, no known bugs


Mine(ref)
ref being a mineral. This is fully customizable. You can call the proc, and stick new/... as an arguement, which can be called like this:
obj/rock verb/Mine() usr.Mine(new/obj/mineral/...)


MineMineral(list)
list being a list of objects. Can be called like this:
obj/rock verb/Mine() usr.MineMultiple(list(new/obj/mineral/..., ...))