/tg/ Station 13 - Modules - TypesVar Details - Proc Details

dimension_theme

Datum which describes a theme and replaces turfs and objects in specified locations to match that theme

Vars

iconAn icon to display to represent the theme
icon_stateIcon state to use to represent the theme
materialTypepath of custom material to use for objects.
replace_floorsWeighted list of turfs to replace the floor with.
replace_objsList of weighted lists for object replacement. Key is an original typepath, value is a weighted list of typepaths to replace it with.
replace_wallsTypepath of turf to replace walls with.
replace_windowTypepath of full-size windows which will replace existing ones These need to be separate from replace_objs because we don't want to replace dir windows with full ones and they share typepath
soundSound to play when transforming a tile
window_colourColour to recolour windows with, replaced by material colour if material was specified.

Procs

apply_materialsApplies a new custom material to the contents of a provided turf.
apply_themeApplies themed transformation to the provided turf.
can_convertReturns true if you actually can transform the provided turf.
get_random_themeReturns a subtype of dimensional theme.
get_replacement_object_typepathReturns the typepath of an object to replace the provided object.
permit_replace_materialReturns true if the provided object can have its material modified.
replace_objectReplaces the provided object with a different one.
replace_turfReplaces the provided turf with a different one.
transform_floorReplaces the provided floor turf with a different one.
transform_windowReplaces a window with a different window and recolours it. This needs its own function because we only want to replace full tile windows.

Var Details

icon

An icon to display to represent the theme

icon_state

Icon state to use to represent the theme

material

Typepath of custom material to use for objects.

replace_floors

Weighted list of turfs to replace the floor with.

replace_objs

List of weighted lists for object replacement. Key is an original typepath, value is a weighted list of typepaths to replace it with.

replace_walls

Typepath of turf to replace walls with.

replace_window

Typepath of full-size windows which will replace existing ones These need to be separate from replace_objs because we don't want to replace dir windows with full ones and they share typepath

sound

Sound to play when transforming a tile

window_colour

Colour to recolour windows with, replaced by material colour if material was specified.

Proc Details

apply_materials

Applies a new custom material to the contents of a provided turf.

Arguments

apply_theme

Applies themed transformation to the provided turf.

Arguments

can_convert

Returns true if you actually can transform the provided turf.

Arguments

get_random_theme

Returns a subtype of dimensional theme.

get_replacement_object_typepath

Returns the typepath of an object to replace the provided object.

Arguments

permit_replace_material

Returns true if the provided object can have its material modified.

Arguments

replace_object

Replaces the provided object with a different one.

Arguments

replace_turf

Replaces the provided turf with a different one.

Arguments

transform_floor

Replaces the provided floor turf with a different one.

Arguments

transform_window

Replaces a window with a different window and recolours it. This needs its own function because we only want to replace full tile windows.

Arguments