Abandoned crats spawn in unsimulated turfs

This commit is contained in:
alex-gh
2013-12-11 03:34:27 +01:00
parent c095aa1eda
commit f6a4f16291
2 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -60,8 +60,7 @@
new/obj/item/weapon/reagent_containers/glass/beaker/noreact(src)
new/obj/item/weapon/reagent_containers/hypospray(src)
if(16)
for(var/i = 0, i < 9, i++)
new/obj/item/bluespace_crystal(src)
new /obj/item/weapon/storage/pill_bottle/random_meds(src)
if(17)
new/obj/item/mecha_parts/mecha_equipment/weapon/honker(src)
new/obj/item/mecha_parts/chassis/honker(src)
+5 -1
View File
@@ -487,7 +487,11 @@ commented out in r5061, I left it because of the shroom thingies
var/turf/unsimulated/floor/plating/airless/asteroid/N = ChangeTurf(/turf/unsimulated/floor/plating/airless/asteroid)
N.fullUpdateMineralOverlays()
var/crate = rand(1,30)
switch(crate)
if(1)
visible_message("<span class='notice'>After digging, you find an old dusty crate buried within!</span>")
new/obj/structure/closet/crate/secure/loot(src)
return
/turf/unsimulated/mineral/proc/excavate_find(var/prob_clean = 0, var/datum/find/F)