mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-31 01:00:59 +01:00
POLARIS: Adds a 'alter values' proc for plane master ease of tweaking
Setting stuff like colorblindness variety and things.
This commit is contained in:
@@ -63,6 +63,17 @@
|
||||
for(var/SP in subplanes)
|
||||
set_vis(which = SP, new_alpha = new_alpha)
|
||||
|
||||
/datum/plane_holder/proc/alter_values(var/which = null, var/list/values = null)
|
||||
ASSERT(which)
|
||||
var/obj/screen/plane_master/PM = plane_masters[which]
|
||||
if(!PM)
|
||||
crash_with("Tried to alter [which] in plane_holder on [my_mob]!")
|
||||
PM.alter_plane_values(arglist(values))
|
||||
if(PM.sub_planes)
|
||||
var/list/subplanes = PM.sub_planes
|
||||
for(var/SP in subplanes)
|
||||
alter_values(SP, values)
|
||||
|
||||
////////////////////
|
||||
// The Plane Master
|
||||
////////////////////
|
||||
@@ -103,6 +114,9 @@
|
||||
new_alpha = sanitize_integer(new_alpha, 0, 255, 255)
|
||||
alpha = new_alpha
|
||||
|
||||
/obj/screen/plane_master/proc/alter_plane_values()
|
||||
return //Stub
|
||||
|
||||
////////////////////
|
||||
// Special masters
|
||||
////////////////////
|
||||
@@ -162,11 +176,11 @@
|
||||
"Paradise Taj" = MATRIX_Taj_Colorblind
|
||||
)
|
||||
|
||||
/obj/screen/plane_master/colorblindness/proc/set_variety(var/which = null)
|
||||
var/new_type = varieties[which]
|
||||
if(!new_type) return
|
||||
/obj/screen/plane_master/colorblindness/alter_plane_values(var/variety = null)
|
||||
var/new_matrix = varieties[variety]
|
||||
if(!new_matrix) return
|
||||
|
||||
color = new_type
|
||||
color = new_matrix
|
||||
|
||||
/obj/screen/plane_master/colorblindness/proc/debug_variety()
|
||||
var/choice = input(usr,"Pick a type of colorblindness","Which?") as null|anything in varieties
|
||||
|
||||
Reference in New Issue
Block a user