mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Adds a blacklist that can modified in mapping for Designs
This allows us to define a proto-lathe to have block EX a VR proto-lathe from making Teleporters
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
var/mat_efficiency = 1
|
var/mat_efficiency = 1
|
||||||
var/speed = 1
|
var/speed = 1
|
||||||
|
var/list/LockedDesigns = list() //CHOMPADDITION: FOR VR mainly.
|
||||||
//VOREStation Edit - Broke this into lines
|
//VOREStation Edit - Broke this into lines
|
||||||
materials = list(
|
materials = list(
|
||||||
MAT_STEEL = 0,
|
MAT_STEEL = 0,
|
||||||
@@ -191,6 +191,11 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/r_n_d/protolathe/proc/canBuild(var/datum/design/D)
|
/obj/machinery/r_n_d/protolathe/proc/canBuild(var/datum/design/D)
|
||||||
|
//CHOMPADDITION: LOCKED designs
|
||||||
|
for(var/datum/design/X in LockedDesigns)
|
||||||
|
if(X == D)
|
||||||
|
return 0
|
||||||
|
//CHOMPADDITION: LOCKED designs
|
||||||
for(var/M in D.materials)
|
for(var/M in D.materials)
|
||||||
if(materials[M] < (D.materials[M] * mat_efficiency))
|
if(materials[M] < (D.materials[M] * mat_efficiency))
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user