mob
Iron_Mine
name = "Iron Mine"
icon = 'Iron Ore Mine.dmi'
Mineiron()
Click()
switch(alert("Destroy this building?",,"Yes","No"))
if("Yes")
src.upkeep -= 1
src.IronOre += 25
sleep(1)
del(src)
verb
Create_Iron_Mine()
if(upkeep >= 39)
return
if(IronOre >= 50)
..()
else
return
if(IronOre <= 1)
IronOre = 0
return
src.upkeep += 1
src.IronOre -= 50
new/mob/Iron_Mine(src.loc)
Mineiron()
I can destroy the iron mine, but my upkeep doesn't go down.
Edit*
By the way, I'm assuming that the indentation errors were added sometime during the tranfer from DM to the forums. =)