mob/monster/spider
name = "Spider"
icon = 'monsters.dmi'
icon_state = "spider"
drops = list(/obj/thing =100,/obj/thing2 =99)
mob/var/drops = list()
mob
proc/monsterdrop(mob/M)
for(var/obj/a in M.drops)
if(prob(M.drops[a]))
new a (M.loc)
break
mob
proc
deathcheck()
src.monsterdrop(src)
src.dead = 1
Problem description: I dont know what the problem is. .. I want it to go through my monsters list of items available to drop and drop it if the probability is right. But it wont even get past the for(var/obj/a in M.drops) part. And I have no idea what the problem is. Can anyone help?