mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] no infinite materials (#11025)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5632b52433
commit
22c8ec20b7
@@ -191,11 +191,15 @@ var/list/RMS_random_malfunction = list(/obj/item/fbp_backup_cell,
|
||||
/obj/item/stack/material/morphium
|
||||
// Include if you enable in the .dme /obj/item/stack/material/debug
|
||||
)
|
||||
possible_object_paths -= banned_sheet_materials
|
||||
var/obj/item/stack/new_metal = /obj/item/stack/material/supermatter
|
||||
for(var/x=1;x<=10;x++) //You got 10 chances to hit a metal that is NOT banned.
|
||||
var/picked_metal = pick(possible_object_paths) //We select
|
||||
var/obj/item/stack/material/picked_metal = pick(possible_object_paths) //We select
|
||||
if(picked_metal in banned_sheet_materials)
|
||||
continue
|
||||
var/datum/material/M = get_material_by_name(initial(picked_metal.default_type))
|
||||
if(M.flags & MATERIAL_NO_SYNTH)
|
||||
continue
|
||||
else
|
||||
new_metal = picked_metal
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user