mob
Move()
if(mining)
mining=0
src<<"You are no longer mining."
..()
obj
proc
Mineit(obj/o)
if(o.ores>0)
var/ore=text2path("/obj/Ores/[o.name]")
usr.mining=1
usr<<"You begin to mine..."
while(usr.mining&&o.ores>0)
sleep(src.speeed)
if(!usr.mining)return
usr.contents+=new ore
o.ores--
usr<<"You received [o.name] ore!"
if(o.ores<=0){usr<<"There are no more ores left in this rock.";o.ReRock();usr.mining=0;return}
else{usr<<"There aren't any ores left in this rock.";return}
Problem description:
If the rock that the player is mining runs out of ores, it sets mining to 0 so that when the player moves it won't show the message "You are no longer mining.". But it still does, does anybody know why?
http://developer.byond.com/hub/Megafartcannon/MiningDemo
Curzon.