diff --git a/_maps/sccv_horizon.dm b/_maps/sccv_horizon.dm index 8e74420ac07..716c7168711 100644 --- a/_maps/sccv_horizon.dm +++ b/_maps/sccv_horizon.dm @@ -1 +1 @@ -#define DEFAULT_MAP "sccv_horizon" \ No newline at end of file +#define DEFAULT_MAP "sccv_horizon" diff --git a/code/ZAS/Connection.dm b/code/ZAS/Connection.dm index 877717633a7..66504cf35f3 100644 --- a/code/ZAS/Connection.dm +++ b/code/ZAS/Connection.dm @@ -15,7 +15,7 @@ Class Vars: zoneB - The archived zone of B. May be null in case of unsimulated connections. edge - Stores the edge this connection is in. Can reference an edge that is no longer processed - after this connection is removed, so make sure to check edge.coefficient > 0 before re-adding it. + after this connection is removed, so make sure to check edge.coefficient > 0 before re-adding it. Class Procs: diff --git a/code/ZAS/ConnectionGroup.dm b/code/ZAS/ConnectionGroup.dm index 7f4c99185bb..b7611a799ae 100644 --- a/code/ZAS/ConnectionGroup.dm +++ b/code/ZAS/ConnectionGroup.dm @@ -20,7 +20,7 @@ Class Vars: B - This holds the second zone with which the first zone equalizes. direct - This counts the number of direct (i.e. with no doors) connections on this edge. - Any value of this is sufficient to make the zones mergeable. + Any value of this is sufficient to make the zones mergeable. connection_edge/unsimulated diff --git a/code/__defines/accessories.dm b/code/__defines/accessories.dm index 2815c07b65b..c0aa1c942a5 100644 --- a/code/__defines/accessories.dm +++ b/code/__defines/accessories.dm @@ -8,4 +8,4 @@ #define ACCESSORY_SLOT_ARM_GUARDS "arm guards" #define ACCESSORY_SLOT_ARMOR_PIN "armor pin" #define ACCESSORY_SLOT_ARMOR_POCKETS "armor pockets" -#define ACCESSORY_SLOT_HEAD "head" \ No newline at end of file +#define ACCESSORY_SLOT_HEAD "head" diff --git a/code/__defines/antagonist.dm b/code/__defines/antagonist.dm index 907134c53e1..5365690bfc0 100644 --- a/code/__defines/antagonist.dm +++ b/code/__defines/antagonist.dm @@ -2,4 +2,4 @@ #define VAMPIRE_MAX_USABLE_BLOOD 950 // Zombie -#define ZOMBIE_MAX_TRIOXIN 30 \ No newline at end of file +#define ZOMBIE_MAX_TRIOXIN 30 diff --git a/code/__defines/battle_monsters.dm b/code/__defines/battle_monsters.dm index 386459c40ba..e61fe81c69f 100644 --- a/code/__defines/battle_monsters.dm +++ b/code/__defines/battle_monsters.dm @@ -80,4 +80,4 @@ #define BATTLE_MONSTERS_POWER_GREATER 1200 #define BATTLE_MONSTERS_POWER_GRAND 1400 -#define BATTLE_MONSTERS_POWER_UPGRADE 200 \ No newline at end of file +#define BATTLE_MONSTERS_POWER_UPGRADE 200 diff --git a/code/__defines/dcs/flags.dm b/code/__defines/dcs/flags.dm index a9e4c97885f..22640a6c603 100644 --- a/code/__defines/dcs/flags.dm +++ b/code/__defines/dcs/flags.dm @@ -11,10 +11,11 @@ // /datum/element flags /// Causes the detach proc to be called when the host object is being deleted #define ELEMENT_DETACH (1 << 0) + /** - * Only elements created with the same arguments given after `id_arg_index` share an element instance - * The arguments are the same when the text and number values are the same and all other values have the same ref - */ + * Only elements created with the same arguments given after `id_arg_index` share an element instance + * The arguments are the same when the text and number values are the same and all other values have the same ref + */ #define ELEMENT_BESPOKE (1 << 1) // How multiple components of the exact same type are handled in the same datum diff --git a/code/__defines/drinks.dm b/code/__defines/drinks.dm index 2f25b7c039b..fecbee4cc98 100644 --- a/code/__defines/drinks.dm +++ b/code/__defines/drinks.dm @@ -1,4 +1,11 @@ -#define NO_EMPTY_ICON 1 //does NOT have an iconstate_empty icon. If adding empty icons for a drink, make sure it does not have this flag -#define UNIQUE_EMPTY_ICON 2 //Uses the empty_icon_state listed. Should really only be used when one trash state applies to multiple drinks. Remove if one is added -#define UNIQUE_EMPTY_ICON_FILE 4 //Uses the empty_icon_state listed. also doesn't change its icon file, giving it a pseudo contained sprite status -#define IS_GLASS 8 //Container is glass. Affects shattering, unacidable, etc. \ No newline at end of file +///Does NOT have an iconstate_empty icon. If adding empty icons for a drink, make sure it does not have this flag +#define NO_EMPTY_ICON 1 + +///Uses the empty_icon_state listed. Should really only be used when one trash state applies to multiple drinks. Remove if one is added +#define UNIQUE_EMPTY_ICON 2 + +///Uses the empty_icon_state listed. also doesn't change its icon file, giving it a pseudo contained sprite status +#define UNIQUE_EMPTY_ICON_FILE 4 + +///Container is glass. Affects shattering, unacidable, etc. +#define IS_GLASS 8 diff --git a/code/__defines/dview.dm b/code/__defines/dview.dm index 88116e9492b..55764fb9a37 100644 --- a/code/__defines/dview.dm +++ b/code/__defines/dview.dm @@ -11,4 +11,4 @@ dview_mob.loc = center; \ dview_mob.see_invisible = invis_flags; \ output = view(range, dview_mob); \ - dview_mob.loc = null; \ No newline at end of file + dview_mob.loc = null; diff --git a/code/__defines/guns.dm b/code/__defines/guns.dm index a53849c0541..37e9d2e2111 100644 --- a/code/__defines/guns.dm +++ b/code/__defines/guns.dm @@ -18,4 +18,4 @@ #define RFD_FLOORS_AND_WALL 1 #define RFD_WINDOW_AND_FRAME 2 #define RFD_AIRLOCK 3 -#define RFD_DECONSTRUCT 4 \ No newline at end of file +#define RFD_DECONSTRUCT 4 diff --git a/code/__defines/hydroponics.dm b/code/__defines/hydroponics.dm index f6b89f81c77..9f3b7e2b388 100644 --- a/code/__defines/hydroponics.dm +++ b/code/__defines/hydroponics.dm @@ -66,4 +66,4 @@ #define TRAIT_IMMUTABLE 38 #define TRAIT_FLESH_COLOUR 39 #define TRAIT_SPOROUS 40 -#define TRAIT_BIOLUM_PWR 41 \ No newline at end of file +#define TRAIT_BIOLUM_PWR 41 diff --git a/code/__defines/icon_layering.dm b/code/__defines/icon_layering.dm index cc5fee0864c..71c05e39cb0 100644 --- a/code/__defines/icon_layering.dm +++ b/code/__defines/icon_layering.dm @@ -38,4 +38,4 @@ #define WRISTS_LAYER 37 #define FIRE_LAYER_UPPER 38 #define TOTAL_LAYERS 38 -//////////////////////////// \ No newline at end of file +//////////////////////////// diff --git a/code/__defines/jobs.dm b/code/__defines/jobs.dm index 0ce0475333f..fc857d70cf4 100644 --- a/code/__defines/jobs.dm +++ b/code/__defines/jobs.dm @@ -38,4 +38,4 @@ #define ZENG_ROLES list(SCIENCE_ROLES, MEDICAL_ROLES, CIVILIAN_ROLES, REPRESENTATIVE_ROLE) #define HEPH_ROLES list(OPERATIONS_ROLES, ENGINEERING_ROLES, CIVILIAN_ROLES, REPRESENTATIVE_ROLE) #define ORION_ROLES list(OPERATIONS_ROLES, CIVILIAN_ROLES, REPRESENTATIVE_ROLE) -#define INDEP_ROLES list(NON_CREW_CIVILIAN_ROLES, CONSULAR_ROLE, JOURNALIST_ROLE, CHAPLAIN_ROLE, OFF_DUTY_CREW_MEMBER_ROLE) \ No newline at end of file +#define INDEP_ROLES list(NON_CREW_CIVILIAN_ROLES, CONSULAR_ROLE, JOURNALIST_ROLE, CHAPLAIN_ROLE, OFF_DUTY_CREW_MEMBER_ROLE) diff --git a/code/__defines/machinery.dm b/code/__defines/machinery.dm index 953771f15e1..56f0daf73fa 100644 --- a/code/__defines/machinery.dm +++ b/code/__defines/machinery.dm @@ -2,8 +2,12 @@ #define MEGAWATTS *1000000 #define GIGAWATTS *1000000000 -#define CELLRATE 0.002 // Multiplier for watts per tick <> cell storage (e.g., 0.02 means if there is a load of 1000 watts, 20 units will be taken from a cell per second) - // It's a conversion constant. power_used*CELLRATE = charge_provided, or charge_used/CELLRATE = power_provided +/** + * Multiplier for watts per tick <> cell storage (e.g., 0.02 means if there is a load of 1000 watts, 20 units will be taken from a cell per second) + * + * It's a conversion constant. power_used*CELLRATE = charge_provided, or charge_used/CELLRATE = power_provided + */ +#define CELLRATE 0.002 // Doors! #define DOOR_CRUSH_DAMAGE 20 diff --git a/code/__defines/misc.dm b/code/__defines/misc.dm index 2eb0c1de241..276ba10ce3e 100644 --- a/code/__defines/misc.dm +++ b/code/__defines/misc.dm @@ -281,10 +281,10 @@ //supposedly the fastest way to do this according to https://gist.github.com/Giacom/be635398926bb463b42a #define RANGE_TURFS(RADIUS, CENTER) \ - block( \ - locate(max(CENTER.x-(RADIUS),1), max(CENTER.y-(RADIUS),1), CENTER.z), \ - locate(min(CENTER.x+(RADIUS),world.maxx), min(CENTER.y+(RADIUS),world.maxy), CENTER.z) \ - ) + block( \ + locate(max(CENTER.x-(RADIUS),1), max(CENTER.y-(RADIUS),1), CENTER.z), \ + locate(min(CENTER.x+(RADIUS),world.maxx), min(CENTER.y+(RADIUS),world.maxy), CENTER.z) \ + ) #define get_turf(A) (get_step(A, 0)) #define NORTH_OF_TURF(T) locate(T.x, T.y + 1, T.z) @@ -391,10 +391,10 @@ /* Define for getting a bitfield of adjacent turfs that meet a condition. - ORIGIN is the object to step from, VAR is the var to write the bitfield to - TVAR is the temporary turf variable to use, FUNC is the condition to check. - FUNC generally should reference TVAR. - example: +ORIGIN is the object to step from, VAR is the var to write the bitfield to +TVAR is the temporary turf variable to use, FUNC is the condition to check. +FUNC generally should reference TVAR. +example: var/turf/T var/result = 0 CALCULATE_NEIGHBORS(src, result, T, isopenturf(T)) diff --git a/code/__defines/modular_guns.dm b/code/__defines/modular_guns.dm index bcd5b490dff..2ab4bff43cc 100644 --- a/code/__defines/modular_guns.dm +++ b/code/__defines/modular_guns.dm @@ -8,4 +8,4 @@ #define islasercapacitor(A) istype(A, /obj/item/laser_components/capacitor) #define ismodifier(A) istype(A, /obj/item/laser_components/modifier) #define ismodulator(A) istype(A, /obj/item/laser_components/modulator) -#define isfocusinglens(A) istype(A, /obj/item/laser_components/focusing_lens) \ No newline at end of file +#define isfocusinglens(A) istype(A, /obj/item/laser_components/focusing_lens) diff --git a/code/__defines/projectiles.dm b/code/__defines/projectiles.dm index 53efae46c09..57bc71133f0 100644 --- a/code/__defines/projectiles.dm +++ b/code/__defines/projectiles.dm @@ -31,6 +31,6 @@ #define ROF_INTERMEDIATE 4 #define ROF_RIFLE 5 #define ROF_HEAVY 8 -#define ROF_SUPERHEAVY 12 +#define ROF_SUPERHEAVY 12 #define ROF_UNWIELDY 16 #define ROF_SPECIAL 40 diff --git a/code/__defines/research.dm b/code/__defines/research.dm index 0f7f7858368..eb09a947089 100644 --- a/code/__defines/research.dm +++ b/code/__defines/research.dm @@ -17,4 +17,4 @@ #define MECHFAB 0x4 //Mechfab #define CHASSIS 0x8 //For protolathe, but differently -#define MAX_TECH_LEVEL 15 \ No newline at end of file +#define MAX_TECH_LEVEL 15 diff --git a/code/__defines/targeting.dm b/code/__defines/targeting.dm index 4bbe7345920..8674ff584c1 100644 --- a/code/__defines/targeting.dm +++ b/code/__defines/targeting.dm @@ -1,4 +1,4 @@ #define TARGET_CAN_MOVE 1 #define TARGET_CAN_RUN 2 #define TARGET_CAN_CLICK 4 -#define TARGET_CAN_RADIO 8 \ No newline at end of file +#define TARGET_CAN_RADIO 8 diff --git a/code/__defines/tgs.dm b/code/__defines/tgs.dm index 7665982f8e6..3cdb22834ab 100644 --- a/code/__defines/tgs.dm +++ b/code/__defines/tgs.dm @@ -122,22 +122,22 @@ //REQUIRED HOOKS /** - * Call this somewhere in [/world/proc/New] that is always run. This function may sleep! - * - * * event_handler - Optional user defined [/datum/tgs_event_handler]. - * * minimum_required_security_level: The minimum required security level to run the game in which the DMAPI is integrated. Can be one of [TGS_SECURITY_ULTRASAFE], [TGS_SECURITY_SAFE], or [TGS_SECURITY_TRUSTED]. - */ + * Call this somewhere in [/world/proc/New] that is always run. This function may sleep! + * + * * event_handler - Optional user defined [/datum/tgs_event_handler]. + * * minimum_required_security_level: The minimum required security level to run the game in which the DMAPI is integrated. Can be one of [TGS_SECURITY_ULTRASAFE], [TGS_SECURITY_SAFE], or [TGS_SECURITY_TRUSTED]. + */ /world/proc/TgsNew(datum/tgs_event_handler/event_handler, minimum_required_security_level = TGS_SECURITY_ULTRASAFE) return /** - * Call this when your initializations are complete and your game is ready to play before any player interactions happen. - * - * This may use [/world/var/sleep_offline] to make this happen so ensure no changes are made to it while this call is running. - * Afterwards, consider explicitly setting it to what you want to avoid this BYOND bug: http://www.byond.com/forum/post/2575184 - * Before this point, note that any static files or directories may be in use by another server. Your code should account for this. - * This function should not be called before ..() in [/world/proc/New]. - */ + * Call this when your initializations are complete and your game is ready to play before any player interactions happen. + * + * This may use [/world/var/sleep_offline] to make this happen so ensure no changes are made to it while this call is running. + * Afterwards, consider explicitly setting it to what you want to avoid this BYOND bug: http://www.byond.com/forum/post/2575184 + * Before this point, note that any static files or directories may be in use by another server. Your code should account for this. + * This function should not be called before ..() in [/world/proc/New]. + */ /world/proc/TgsInitializationComplete() return @@ -145,8 +145,8 @@ #define TGS_TOPIC var/tgs_topic_return = TgsTopic(args[1]); if(tgs_topic_return) return tgs_topic_return /** - * Call this at the beginning of [world/proc/Reboot]. - */ + * Call this at the beginning of [world/proc/Reboot]. + */ /world/proc/TgsReboot() return diff --git a/code/_compile_options.dm b/code/_compile_options.dm index c08babb650b..dcea26e7ec3 100644 --- a/code/_compile_options.dm +++ b/code/_compile_options.dm @@ -16,7 +16,7 @@ #ifndef PRELOAD_RSC //set to: #define PRELOAD_RSC 2 // 0 to allow using external resources or on-demand behaviour; #endif // 1 to use the default behaviour; - // 2 for preloading absolutely everything; + // 2 for preloading absolutely everything; //#define TESTING // Creates debug feedback messages and enables many optional testing procs/checks #ifdef TESTING diff --git a/code/_helpers/_string_lists.dm b/code/_helpers/_string_lists.dm index 02e16652c31..e58ae7f56ec 100644 --- a/code/_helpers/_string_lists.dm +++ b/code/_helpers/_string_lists.dm @@ -38,4 +38,4 @@ var/string_filename_current_key if(fexists("strings/[filename]")) string_cache[filename] = json_load("strings/[filename]") else - CRASH("file not found: strings/[filename]") \ No newline at end of file + CRASH("file not found: strings/[filename]") diff --git a/code/_helpers/data_structures.dm b/code/_helpers/data_structures.dm index 0b7afe21ba8..9c98d8185fe 100644 --- a/code/_helpers/data_structures.dm +++ b/code/_helpers/data_structures.dm @@ -25,4 +25,4 @@ return contents.len /Queue/proc/as_list() - return contents \ No newline at end of file + return contents diff --git a/code/_helpers/game.dm b/code/_helpers/game.dm index 2cc67b25f1c..008bafe014d 100644 --- a/code/_helpers/game.dm +++ b/code/_helpers/game.dm @@ -114,7 +114,7 @@ var/dest_y /datum/projectile_data/New(var/src_x, var/src_y, var/time, var/distance, \ - var/power_x, var/power_y, var/dest_x, var/dest_y) + var/power_x, var/power_y, var/dest_x, var/dest_y) src.src_x = src_x src.src_y = src_y src.time = time diff --git a/code/_helpers/icons.dm b/code/_helpers/icons.dm index bf9d905457b..47b17b27ae2 100644 --- a/code/_helpers/icons.dm +++ b/code/_helpers/icons.dm @@ -18,57 +18,57 @@ remember you first need to setup an /icon var like so: var/icon/my_icon = new('iconfile.dmi') icon/ChangeOpacity(amount = 1) - A very common operation in DM is to try to make an icon more or less transparent. Making an icon more - transparent is usually much easier than making it less so, however. This proc basically is a frontend - for MapColors() which can change opacity any way you like, in much the same way that SetIntensity() - can make an icon lighter or darker. If amount is 0.5, the opacity of the icon will be cut in half. - If amount is 2, opacity is doubled and anything more than half-opaque will become fully opaque. + A very common operation in DM is to try to make an icon more or less transparent. Making an icon more + transparent is usually much easier than making it less so, however. This proc basically is a frontend + for MapColors() which can change opacity any way you like, in much the same way that SetIntensity() + can make an icon lighter or darker. If amount is 0.5, the opacity of the icon will be cut in half. + If amount is 2, opacity is doubled and anything more than half-opaque will become fully opaque. icon/GrayScale() - Converts the icon to grayscale instead of a fully colored icon. Alpha values are left intact. + Converts the icon to grayscale instead of a fully colored icon. Alpha values are left intact. icon/ColorTone(tone) - Similar to GrayScale(), this proc converts the icon to a range of black -> tone -> white, where tone is an - RGB color (its alpha is ignored). This can be used to create a sepia tone or similar effect. - See also the global ColorTone() proc. + Similar to GrayScale(), this proc converts the icon to a range of black -> tone -> white, where tone is an + RGB color (its alpha is ignored). This can be used to create a sepia tone or similar effect. + See also the global ColorTone() proc. icon/MinColors(icon) - The icon is blended with a second icon where the minimum of each RGB pixel is the result. - Transparency may increase, as if the icons were blended with ICON_ADD. You may supply a color in place of an icon. + The icon is blended with a second icon where the minimum of each RGB pixel is the result. + Transparency may increase, as if the icons were blended with ICON_ADD. You may supply a color in place of an icon. icon/MaxColors(icon) - The icon is blended with a second icon where the maximum of each RGB pixel is the result. - Opacity may increase, as if the icons were blended with ICON_OR. You may supply a color in place of an icon. + The icon is blended with a second icon where the maximum of each RGB pixel is the result. + Opacity may increase, as if the icons were blended with ICON_OR. You may supply a color in place of an icon. icon/Opaque(background = "#000000") - All alpha values are set to 255 throughout the icon. Transparent pixels become black, or whatever background color you specify. + All alpha values are set to 255 throughout the icon. Transparent pixels become black, or whatever background color you specify. icon/BecomeAlphaMask() - You can convert a simple grayscale icon into an alpha mask to use with other icons very easily with this proc. - The black parts become transparent, the white parts stay white, and anything in between becomes a translucent shade of white. + You can convert a simple grayscale icon into an alpha mask to use with other icons very easily with this proc. + The black parts become transparent, the white parts stay white, and anything in between becomes a translucent shade of white. icon/AddAlphaMask(mask) - The alpha values of the mask icon will be blended with the current icon. Anywhere the mask is opaque, - the current icon is untouched. Anywhere the mask is transparent, the current icon becomes transparent. - Where the mask is translucent, the current icon becomes more transparent. + The alpha values of the mask icon will be blended with the current icon. Anywhere the mask is opaque, + the current icon is untouched. Anywhere the mask is transparent, the current icon becomes transparent. + Where the mask is translucent, the current icon becomes more transparent. icon/UseAlphaMask(mask, mode) - Sometimes you may want to take the alpha values from one icon and use them on a different icon. - This proc will do that. Just supply the icon whose alpha mask you want to use, and src will change - so it has the same colors as before but uses the mask for opacity. + Sometimes you may want to take the alpha values from one icon and use them on a different icon. + This proc will do that. Just supply the icon whose alpha mask you want to use, and src will change + so it has the same colors as before but uses the mask for opacity. COLOR MANAGEMENT AND HSV RGB isn't the only way to represent color. Sometimes it's more useful to work with a model called HSV, which stands for hue, saturation, and value. - * The hue of a color describes where it is along the color wheel. It goes from red to yellow to green to - cyan to blue to magenta and back to red. - * The saturation of a color is how much color is in it. A color with low saturation will be more gray, - and with no saturation at all it is a shade of gray. - * The value of a color determines how bright it is. A high-value color is vivid, moderate value is dark, - and no value at all is black. + * The hue of a color describes where it is along the color wheel. It goes from red to yellow to green to + cyan to blue to magenta and back to red. + * The saturation of a color is how much color is in it. A color with low saturation will be more gray, + and with no saturation at all it is a shade of gray. + * The value of a color determines how bright it is. A high-value color is vivid, moderate value is dark, + and no value at all is black. Just as BYOND uses "#rrggbb" to represent RGB values, a similar format is used for HSV: "#hhhssvv". The hue is three hex digits because it ranges from 0 to 0x5FF. - * 0 to 0xFF - red to yellow - * 0x100 to 0x1FF - yellow to green - * 0x200 to 0x2FF - green to cyan - * 0x300 to 0x3FF - cyan to blue - * 0x400 to 0x4FF - blue to magenta - * 0x500 to 0x5FF - magenta to red + * 0 to 0xFF - red to yellow + * 0x100 to 0x1FF - yellow to green + * 0x200 to 0x2FF - green to cyan + * 0x300 to 0x3FF - cyan to blue + * 0x400 to 0x4FF - blue to magenta + * 0x500 to 0x5FF - magenta to red Knowing this, you can figure out that red is "#000ffff" in HSV format, which is hue 0 (red), saturation 255 (as colorful as possible), value 255 (as bright as possible). Green is "#200ffff" and blue is "#400ffff". @@ -78,42 +78,42 @@ More than one HSV color can match the same RGB color. Here are some procs you can use for color management: ReadRGB(rgb) - Takes an RGB string like "#ffaa55" and converts it to a list such as list(255,170,85). If an RGBA format is used - that includes alpha, the list will have a fourth item for the alpha value. + Takes an RGB string like "#ffaa55" and converts it to a list such as list(255,170,85). If an RGBA format is used + that includes alpha, the list will have a fourth item for the alpha value. hsv(hue, sat, val, apha) - Counterpart to rgb(), this takes the values you input and converts them to a string in "#hhhssvv" or "#hhhssvvaa" - format. Alpha is not included in the result if null. + Counterpart to rgb(), this takes the values you input and converts them to a string in "#hhhssvv" or "#hhhssvvaa" + format. Alpha is not included in the result if null. ReadHSV(rgb) - Takes an HSV string like "#100FF80" and converts it to a list such as list(256,255,128). If an HSVA format is used that - includes alpha, the list will have a fourth item for the alpha value. + Takes an HSV string like "#100FF80" and converts it to a list such as list(256,255,128). If an HSVA format is used that + includes alpha, the list will have a fourth item for the alpha value. RGBtoHSV(rgb) - Takes an RGB or RGBA string like "#ffaa55" and converts it into an HSV or HSVA color such as "#080aaff". + Takes an RGB or RGBA string like "#ffaa55" and converts it into an HSV or HSVA color such as "#080aaff". HSVtoRGB(hsv) - Takes an HSV or HSVA string like "#080aaff" and converts it into an RGB or RGBA color such as "#ff55aa". + Takes an HSV or HSVA string like "#080aaff" and converts it into an RGB or RGBA color such as "#ff55aa". BlendRGB(rgb1, rgb2, amount) - Blends between two RGB or RGBA colors using regular RGB blending. If amount is 0, the first color is the result; - if 1, the second color is the result. 0.5 produces an average of the two. Values outside the 0 to 1 range are allowed as well. - The returned value is an RGB or RGBA color. + Blends between two RGB or RGBA colors using regular RGB blending. If amount is 0, the first color is the result; + if 1, the second color is the result. 0.5 produces an average of the two. Values outside the 0 to 1 range are allowed as well. + The returned value is an RGB or RGBA color. BlendHSV(hsv1, hsv2, amount) - Blends between two HSV or HSVA colors using HSV blending, which tends to produce nicer results than regular RGB - blending because the brightness of the color is left intact. If amount is 0, the first color is the result; if 1, - the second color is the result. 0.5 produces an average of the two. Values outside the 0 to 1 range are allowed as well. - The returned value is an HSV or HSVA color. + Blends between two HSV or HSVA colors using HSV blending, which tends to produce nicer results than regular RGB + blending because the brightness of the color is left intact. If amount is 0, the first color is the result; if 1, + the second color is the result. 0.5 produces an average of the two. Values outside the 0 to 1 range are allowed as well. + The returned value is an HSV or HSVA color. BlendRGBasHSV(rgb1, rgb2, amount) - Like BlendHSV(), but the colors used and the return value are RGB or RGBA colors. The blending is done in HSV form. + Like BlendHSV(), but the colors used and the return value are RGB or RGBA colors. The blending is done in HSV form. HueToAngle(hue) - Converts a hue to an angle range of 0 to 360. Angle 0 is red, 120 is green, and 240 is blue. + Converts a hue to an angle range of 0 to 360. Angle 0 is red, 120 is green, and 240 is blue. AngleToHue(hue) - Converts an angle to a hue in the valid range. + Converts an angle to a hue in the valid range. RotateHue(hsv, angle) - Takes an HSV or HSVA value and rotates the hue forward through red, green, and blue by an angle from 0 to 360. - (Rotating red by 60� produces yellow.) The result is another HSV or HSVA color with the same saturation and value - as the original, but a different hue. + Takes an HSV or HSVA value and rotates the hue forward through red, green, and blue by an angle from 0 to 360. + (Rotating red by 60� produces yellow.) The result is another HSV or HSVA color with the same saturation and value + as the original, but a different hue. GrayScale(rgb) - Takes an RGB or RGBA color and converts it to grayscale. Returns an RGB or RGBA string. + Takes an RGB or RGBA color and converts it to grayscale. Returns an RGB or RGBA string. ColorTone(rgb, tone) - Similar to GrayScale(), this proc converts an RGB or RGBA color to a range of black -> tone -> white instead of - using strict shades of gray. The tone value is an RGB color; any alpha value is ignored. + Similar to GrayScale(), this proc converts an RGB or RGBA color to a range of black -> tone -> white instead of + using strict shades of gray. The tone value is an RGB color; any alpha value is ignored. */ /* diff --git a/code/_helpers/mouse.dm b/code/_helpers/mouse.dm index 84b6dc827a4..a14ed4b22a4 100644 --- a/code/_helpers/mouse.dm +++ b/code/_helpers/mouse.dm @@ -13,4 +13,4 @@ testing("X: [.["icon-x"]], Y: [.["icon-y"]]") #endif return list("icon-x" = Clamp(text2num(.["icon-x"]), 0, lim_x), - "icon-y" = Clamp(text2num(.["icon-y"]), 0, lim_y)) \ No newline at end of file + "icon-y" = Clamp(text2num(.["icon-y"]), 0, lim_y)) diff --git a/code/_helpers/text.dm b/code/_helpers/text.dm index 6f5281e2445..82d06e94186 100644 --- a/code/_helpers/text.dm +++ b/code/_helpers/text.dm @@ -85,11 +85,10 @@ #define SYMBOLS_DETECTED_NEW_WORD 5 // symbols that we will interpret as the start of a new word /** - * Filters out undesirable characters from names. - * - * * allow_numbers - allows numbers and common special characters - used for silicon/other weird things names - */ - + * Filters out undesirable characters from names. + * + * * allow_numbers - allows numbers and common special characters - used for silicon/other weird things names + */ /proc/sanitizeName(input, max_length = MAX_NAME_LEN, allow_numbers = TRUE) if(!input) return //Rejects the input if it is null diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm index d73bea5c4b5..891d141adae 100644 --- a/code/_helpers/unsorted.dm +++ b/code/_helpers/unsorted.dm @@ -263,7 +263,7 @@ Turf and target are seperate in case you want to teleport some distance from a t #undef LOCATE_COORDS -//Returns whether or not a player is a guest using their ckey as an input +///Returns whether or not a player is a guest using their ckey as an input /proc/IsGuestKey(key) if (findtext(key, "Guest-", 1, 7) != 1) //was findtextEx return 0 @@ -279,7 +279,7 @@ Turf and target are seperate in case you want to teleport some distance from a t return 0 return 1 -//Ensure the frequency is within bounds of what it should be sending/recieving at +///Ensure the frequency is within bounds of what it should be sending/recieving at /proc/sanitize_frequency(var/f, var/low = PUBLIC_LOW_FREQ, var/high = PUBLIC_HIGH_FREQ) f = round(f) f = max(low, f) @@ -288,15 +288,15 @@ Turf and target are seperate in case you want to teleport some distance from a t f += 1 return f -//Turns 1479 into 147.9 +///Turns 1479 into 147.9 /proc/format_frequency(var/f) return "[round(f / 10)].[f % 10]" -//Picks a string of symbols to display as the law number for hacked or ion laws +///Picks a string of symbols to display as the law number for hacked or ion laws /proc/ionnum() return "[pick("1","2","3","4","5","6","7","8","9","0")][pick("!","@","#","$","%","^","&","*")][pick("!","@","#","$","%","^","&","*")][pick("!","@","#","$","%","^","&","*")]" -//When an AI is activated, it can choose from a list of non-slaved borgs to have as a slave. +///When an AI is activated, it can choose from a list of non-slaved borgs to have as a slave. /proc/freeborg() var/select = null var/list/borgs = list() @@ -310,7 +310,7 @@ Turf and target are seperate in case you want to teleport some distance from a t select = input("Unshackled borg signals detected:", "Borg selection", null, null) as null|anything in borgs return borgs[select] -//When a borg is activated, it can choose which AI it wants to be slaved to +///When a borg is activated, it can choose which AI it wants to be slaved to /proc/active_ais() . = list() for(var/mob/living/silicon/ai/A in living_mob_list) @@ -321,7 +321,7 @@ Turf and target are seperate in case you want to teleport some distance from a t . += A return . -//Find an active ai with the least borgs. VERBOSE PROCNAME HUH! +///Find an active ai with the least borgs. VERBOSE PROCNAME HUH! /proc/select_active_ai_with_fewest_borgs() var/mob/living/silicon/ai/selected var/list/active = active_ais() @@ -366,7 +366,7 @@ Turf and target are seperate in case you want to teleport some distance from a t new_list += Dead_list return new_list -//Returns a list of all mobs with their name +///Returns a list of all mobs with their name /proc/getmobs() var/list/mobs = sortmobs() @@ -392,7 +392,7 @@ Turf and target are seperate in case you want to teleport some distance from a t return creatures -//Orders mobs by type then by name +///Orders mobs by type then by name /proc/sortmobs() var/list/moblist = list() var/list/sortmob = sortAtom(mob_list) @@ -424,15 +424,17 @@ Turf and target are seperate in case you want to teleport some distance from a t // mob_list.Add(M) return moblist -//Forces a variable to be posative +///Forces a variable to be posative /proc/modulus(var/M) if(M >= 0) return M if(M < 0) return -M -// returns the turf located at the map edge in the specified direction relative to A -// used for mass driver +/** + * Returns the turf located at the map edge in the specified direction relative to A + * used for mass driver + */ /proc/get_edge_target_turf(var/atom/A, var/direction) var/turf/target = locate(A.x, A.y, A.z) @@ -453,10 +455,12 @@ Turf and target are seperate in case you want to teleport some distance from a t return target -// returns turf relative to A in given direction at set range -// result is bounded to map size -// note range is non-pythagorean -// used for disposal system +/** + * returns turf relative to A in given direction at set range + * result is bounded to map size + * note range is non-pythagorean + * used for disposal system + */ /proc/get_ranged_target_turf(var/atom/A, var/direction, var/range) var/x = A.x @@ -480,25 +484,25 @@ Turf and target are seperate in case you want to teleport some distance from a t var/y = min(world.maxy, max(1, A.y + dy)) return locate(x,y,A.z) -//Makes sure MIDDLE is between LOW and HIGH. If not, it adjusts it. Returns the adjusted value. +///Makes sure MIDDLE is between LOW and HIGH. If not, it adjusts it. Returns the adjusted value. /proc/between(var/low, var/middle, var/high) return max(min(middle, high), low) -//returns random gauss number +///Returns random gauss number /proc/GaussRand(var/sigma) - var/x,y,rsq - do - x=2*rand()-1 - y=2*rand()-1 - rsq=x*x+y*y - while(rsq>1 || !rsq) - return sigma*y*sqrt(-2*log(rsq)/rsq) - -//returns random gauss number, rounded to 'roundto' + var/x,y,rsq + do + x=2*rand()-1 + y=2*rand()-1 + rsq=x*x+y*y + while(rsq>1 || !rsq) + return sigma*y*sqrt(-2*log(rsq)/rsq) + +///Returns random gauss number, rounded to 'roundto' /proc/GaussRandRound(var/sigma,var/roundto) return round(GaussRand(sigma),roundto) -//Step-towards method of determining whether one atom can see another. Similar to viewers() +///Step-towards method of determining whether one atom can see another. Similar to viewers() /proc/can_see(var/atom/source, var/atom/target, var/length=5) // I couldn't be arsed to do actual raycasting :I This is horribly inaccurate. var/turf/current = get_turf(source) var/turf/target_turf = get_turf(target) diff --git a/code/_onclick/drag_drop.dm b/code/_onclick/drag_drop.dm index f584a922d4a..66e847312c2 100644 --- a/code/_onclick/drag_drop.dm +++ b/code/_onclick/drag_drop.dm @@ -13,6 +13,6 @@ INVOKE_ASYNC(over, TYPE_PROC_REF(/atom, MouseDrop_T), src, usr, src_location, over_location, src_control, over_control, params) -// receive a mousedrop +///Receive a mousedrop /atom/proc/MouseDrop_T(atom/dropping, mob/user, src_location, over_location, src_control, over_control, params) - return \ No newline at end of file + return diff --git a/code/_onclick/hud/borer_hud.dm b/code/_onclick/hud/borer_hud.dm index 407ffb559c5..94dacd194e4 100644 --- a/code/_onclick/hud/borer_hud.dm +++ b/code/_onclick/hud/borer_hud.dm @@ -10,4 +10,4 @@ var/mob/living/simple_animal/borer/B = mymob B.chem_hud = C - mymob.client.screen += src.adding \ No newline at end of file + mymob.client.screen += src.adding diff --git a/code/_onclick/hud/captive_brain_hud.dm b/code/_onclick/hud/captive_brain_hud.dm index 8a25ab24dbc..1f8922d74ce 100644 --- a/code/_onclick/hud/captive_brain_hud.dm +++ b/code/_onclick/hud/captive_brain_hud.dm @@ -12,4 +12,4 @@ resist.layer = SCREEN_LAYER adding += resist - mymob.client.screen += src.adding \ No newline at end of file + mymob.client.screen += src.adding diff --git a/code/_onclick/hud/morph.dm b/code/_onclick/hud/morph.dm index 77b56463fb1..5575d74e6be 100644 --- a/code/_onclick/hud/morph.dm +++ b/code/_onclick/hud/morph.dm @@ -27,4 +27,4 @@ hotkeybuttons += resist mymob.client.screen = null - mymob.client.screen += list(mov_intent, mymob.healths, mymob.zone_sel, resist) \ No newline at end of file + mymob.client.screen += list(mov_intent, mymob.healths, mymob.zone_sel, resist) diff --git a/code/_onclick/hud/screen_object_types/borer.dm b/code/_onclick/hud/screen_object_types/borer.dm index 73888dbc65a..80d50b15058 100644 --- a/code/_onclick/hud/screen_object_types/borer.dm +++ b/code/_onclick/hud/screen_object_types/borer.dm @@ -11,4 +11,4 @@ /obj/screen/borer/chemicals/Click(var/location, var/control, var/params) if(istype(usr, /mob/living/simple_animal/borer)) var/mob/living/simple_animal/borer/B = usr - to_chat(usr, SPAN_NOTICE("You have [B.chemicals]u of chemicals to use for your abilities.")) \ No newline at end of file + to_chat(usr, SPAN_NOTICE("You have [B.chemicals]u of chemicals to use for your abilities.")) diff --git a/code/_onclick/hud/screen_object_types/vampire.dm b/code/_onclick/hud/screen_object_types/vampire.dm index 51f04b93f8d..1e36e783258 100644 --- a/code/_onclick/hud/screen_object_types/vampire.dm +++ b/code/_onclick/hud/screen_object_types/vampire.dm @@ -33,4 +33,4 @@ /obj/screen/vampire/suck/Click(var/location, var/control, var/params) if(ishuman(usr)) var/mob/living/carbon/human/H = usr - H.vampire_drain_blood() \ No newline at end of file + H.vampire_drain_blood() diff --git a/code/_onclick/other_mobs.dm b/code/_onclick/other_mobs.dm index 5dd6105c2a7..fb5b0817957 100644 --- a/code/_onclick/other_mobs.dm +++ b/code/_onclick/other_mobs.dm @@ -1,17 +1,17 @@ -// Generic damage proc (slimes and monkeys). +///Generic damage proc (slimes and monkeys). /atom/proc/attack_generic(mob/user as mob) return 0 -// generic click on for pai +///Generic click on for pai /atom/proc/attack_pai(mob/user) return -/* - Humans: - Adds an exception for gloves, to allow special glove types like the ninja ones. - - Otherwise pretty standard. -*/ +/** + * Humans: + * Adds an exception for gloves, to allow special glove types like the ninja ones. + * + * Otherwise pretty standard. + */ /mob/living/carbon/human/UnarmedAttack(var/atom/A, var/proximity) if(!..()) @@ -24,7 +24,7 @@ var/obj/item/clothing/glasses/GS = glasses if(istype(G) && G.Touch(A,src,1)) return - + else if(istype(GS) && GS.Look(A,src,1)) // for goggles return @@ -45,10 +45,10 @@ /mob/living/carbon/human/RangedAttack(var/atom/A) var/obj/item/clothing/gloves/GV = gloves var/obj/item/clothing/glasses/GS = glasses - + if(istype(GS) && GS.Look(A,src,0)) // for goggles return - + if(istype(GV) && GV.Touch(A,src,0)) // for magic gloves return @@ -175,4 +175,4 @@ /mob/living/CtrlClickOn(var/atom/A) . = ..() if(!. && a_intent == I_GRAB && length(available_maneuvers)) - . = perform_maneuver(prepared_maneuver || available_maneuvers[1], A) \ No newline at end of file + . = perform_maneuver(prepared_maneuver || available_maneuvers[1], A) diff --git a/code/controllers/master/failsafe.dm b/code/controllers/master/failsafe.dm index 2faf9e4b260..9c52e58e277 100644 --- a/code/controllers/master/failsafe.dm +++ b/code/controllers/master/failsafe.dm @@ -1,13 +1,12 @@ - /** - * Failsafe - * - * Pretty much pokes the MC to make sure it's still alive. - **/ - #define FAILSAFE_MSG(msg) admin_notice("FAILSAFE: [msg]", R_DEBUG|R_ADMIN|R_DEV) var/datum/controller/failsafe/Failsafe +/** + * #Failsafe Controller + * + * Pretty much pokes the MC to make sure it's still alive. + */ /datum/controller/failsafe // This thing pretty much just keeps poking the master controller name = "Failsafe" diff --git a/code/controllers/master/master.dm b/code/controllers/master/master.dm index fc52cf70ad0..0abc65114f2 100644 --- a/code/controllers/master/master.dm +++ b/code/controllers/master/master.dm @@ -1,17 +1,16 @@ - /** - * StonedMC - * - * Designed to properly split up a given tick among subsystems - * Note: if you read parts of this code and think "why is it doing it that way" - * Odds are, there is a reason - * - **/ var/datum/controller/master/Master = new() //current tick limit, assigned by the queue controller before running a subsystem. //used by check_tick as well so that the procs subsystems call can obey that SS's tick limits var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING +/** + * StonedMC + * + * Designed to properly split up a given tick among subsystems + * Note: if you read parts of this code and think "why is it doing it that way" + * Odds are, there is a reason + */ /datum/controller/master name = "Master" diff --git a/code/controllers/subsystems/economy.dm b/code/controllers/subsystems/economy.dm index cd9bfdd8c3b..6413930ce88 100644 --- a/code/controllers/subsystems/economy.dm +++ b/code/controllers/subsystems/economy.dm @@ -35,7 +35,8 @@ SUBSYSTEM_DEF(economy) /** * Account Creation */ - //Create the station Account + +///Create the station Account /datum/controller/subsystem/economy/proc/create_station_account() if(station_account) return FALSE diff --git a/code/controllers/subsystems/evacuation/evacuation_option.dm b/code/controllers/subsystems/evacuation/evacuation_option.dm index c4012ba185c..250766112fb 100644 --- a/code/controllers/subsystems/evacuation/evacuation_option.dm +++ b/code/controllers/subsystems/evacuation/evacuation_option.dm @@ -7,4 +7,4 @@ var/abandon_ship = FALSE /datum/evacuation_option/proc/execute(var/mob/user) - return \ No newline at end of file + return diff --git a/code/controllers/subsystems/evacuation/evacuation_pods.dm b/code/controllers/subsystems/evacuation/evacuation_pods.dm index 947a74ea088..280be058240 100644 --- a/code/controllers/subsystems/evacuation/evacuation_pods.dm +++ b/code/controllers/subsystems/evacuation/evacuation_pods.dm @@ -181,4 +181,4 @@ #undef EVAC_OPT_ABANDON_SHIP #undef EVAC_OPT_BLUESPACE_JUMP #undef EVAC_OPT_CANCEL_ABANDON_SHIP -#undef EVAC_OPT_CANCEL_BLUESPACE_JUMP \ No newline at end of file +#undef EVAC_OPT_CANCEL_BLUESPACE_JUMP diff --git a/code/controllers/subsystems/evacuation/evacuation_shuttle.dm b/code/controllers/subsystems/evacuation/evacuation_shuttle.dm index 18b7b7a6a30..dc913e77ce1 100644 --- a/code/controllers/subsystems/evacuation/evacuation_shuttle.dm +++ b/code/controllers/subsystems/evacuation/evacuation_shuttle.dm @@ -155,4 +155,4 @@ cancel_call_proc(user) #undef EVAC_OPT_CALL_SHUTTLE -#undef EVAC_OPT_RECALL_SHUTTLE \ No newline at end of file +#undef EVAC_OPT_RECALL_SHUTTLE diff --git a/code/controllers/subsystems/processing/nanoui.dm b/code/controllers/subsystems/processing/nanoui.dm index e1bede3dab0..d7a5ed71c0a 100644 --- a/code/controllers/subsystems/processing/nanoui.dm +++ b/code/controllers/subsystems/processing/nanoui.dm @@ -8,18 +8,20 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) // NanoUI stuff. var/list/open_uis = list() - /** - * Get an open /nanoui ui for the current user, src_object and ui_key and try to update it with data - * - * @param user /mob The mob who opened/owns the ui - * @param src_object /obj|/mob The obj or mob which the ui belongs to - * @param ui_key string A string key used for the ui - * @param ui /datum/nanoui An existing instance of the ui (can be null) - * @param data list The data to be passed to the ui, if it exists - * @param force_open boolean The ui is being forced to (re)open, so close ui if it exists (instead of updating) - * - * @return /nanoui Returns the found ui, for null if none exists - */ +/datum/controller/subsystem/processing/nanoui/New() + NEW_SS_GLOBAL(SSnanoui) + +/** + * Get an open /nanoui ui for the current user, src_object and ui_key and try to update it with data + * + * * user - /mob The mob who opened/owns the ui + * * src_object - /obj|/mob The obj or mob which the ui belongs to + * * ui_key - A string key used for the ui + * * data - List, the data to be passed to the ui, if it exists + * * force_open - Boolean, the ui is being forced to (re)open, so close ui if it exists (instead of updating) + * + * Returns the `/nanoui` found ui, for null if none exists + */ /datum/controller/subsystem/processing/nanoui/proc/try_update_ui(mob/user, src_object, ui_key, datum/nanoui/ui, data, force_open = FALSE) if (!ui) // no ui has been passed, so we'll search for one ui = get_open_ui(user, src_object, ui_key) @@ -35,15 +37,13 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) return null - /** - * Get an open /nanoui ui for the current user, src_object and ui_key - * - * @param user /mob The mob who opened/owns the ui - * @param src_object /obj|/mob The obj or mob which the ui belongs to - * @param ui_key string A string key used for the ui - * - * @return /nanoui Returns the found ui, or null if none exists - */ +/** + * Get an open /nanoui ui for the current user, src_object and ui_key + * + * * user - The `/mob` who opened/owns the ui + * * src_object - The `/obj` or `/mob` which the ui belongs to + * * ui_key - A string key used for the ui + */ /datum/controller/subsystem/processing/nanoui/proc/get_open_ui(mob/user, src_object, ui_key) var/src_object_key = SOFTREF(src_object) if (!LAZYLEN(open_uis[src_object_key]) || !LAZYLEN(open_uis[src_object_key][ui_key])) @@ -56,13 +56,13 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) //testing("nanomanager/get_open_ui mob [user.name] [src_object:name] [ui_key] - ui not found") return null - /** - * Update all /nanoui uis attached to src_object - * - * @param src_object /obj|/mob The obj or mob which the uis are attached to - * - * @return int The number of uis updated - */ +/** + * Update all `/nanoui` uis attached to src_object + * + * * src_object - The `/obj` or `/mob` which the uis are attached to + * + * Returns the number of UIs updated + */ /datum/controller/subsystem/processing/nanoui/proc/update_uis(src_object) var/src_object_key = SOFTREF(src_object) if (!LAZYLEN(open_uis[src_object_key])) @@ -77,13 +77,13 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) ui.process(1) .++ - /** - * Close all /nanoui uis attached to src_object - * - * @param src_object /obj|/mob The obj or mob which the uis are attached to - * - * @return int The number of uis close - */ +/** + * Close all `/nanoui` uis attached to src_object + * + * * src_object - The `/obj` or `/mob` which the uis are attached to + * + * Returns the number of UIs closed + */ /datum/controller/subsystem/processing/nanoui/proc/close_uis(src_object) var/src_object_key = SOFTREF(src_object) if (!open_uis[src_object_key] || !islist(open_uis[src_object_key])) @@ -98,15 +98,15 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) ui.close() .++ - /** - * Update /nanoui uis belonging to user - * - * @param user /mob The mob who owns the uis - * @param src_object /obj|/mob If src_object is provided, only update uis which are attached to src_object (optional) - * @param ui_key string If ui_key is provided, only update uis with a matching ui_key (optional) - * - * @return int The number of uis updated - */ +/** + * Update /nanoui uis belonging to user + * + * * user - The `/mob` who owns the uis + * * src_object - An `/obj` or `/mob` that, if is provided, only update uis which are attached to it (optional) + * * ui_key - A string, if ui_key is provided, only update uis with a matching ui_key (optional) + * + * Returns the number of UIs updated + */ /datum/controller/subsystem/processing/nanoui/proc/update_user_uis(mob/user, src_object, ui_key) if (!LAZYLEN(user.open_uis)) return 0 // has no open uis @@ -130,14 +130,12 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) //testing("nanomanager/close_user_uis mob [user.name] closed [open_uis.len] of [.] uis") - /** - * Add a /nanoui ui to the list of open uis - * This is called by the /nanoui open() proc - * - * @param ui /nanoui The ui to add - * - * @return nothing - */ +/** + * Add a /nanoui ui to the list of open uis + * This is called by the /nanoui open() proc + * + * * ui - The `/nanoui` ui to add + */ /datum/controller/subsystem/processing/nanoui/proc/ui_opened(datum/nanoui/ui) var/src_object_key = SOFTREF(ui.src_object) LAZYINITLIST(open_uis[src_object_key]) @@ -147,14 +145,14 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) START_PROCESSING(SSnanoui, ui) //testing("nanomanager/ui_opened mob [ui.user.name] [ui.src_object:name] [ui.ui_key] - user.open_uis [ui.user.open_uis.len] | uis [uis.len] | processing_uis [processing_uis.len]") - /** - * Remove a /nanoui ui from the list of open uis - * This is called by the /nanoui close() proc - * - * @param ui /nanoui The ui to remove - * - * @return int 0 if no ui was removed, 1 if removed successfully - */ +/** + * Remove a /nanoui ui from the list of open uis + * This is called by the /nanoui close() proc + * + * * ui - A `/nanoui` to remove + * + * Returns FALSE if no ui was removed, TRUE if removed successfully + */ /datum/controller/subsystem/processing/nanoui/proc/ui_closed(datum/nanoui/ui) var/src_object_key = SOFTREF(ui.src_object) var/ui_key = ui.ui_key @@ -179,26 +177,22 @@ PROCESSING_SUBSYSTEM_DEF(nanoui) return 1 - /** - * This is called on user logout - * Closes/clears all uis attached to the user's /mob - * - * @param user /mob The user's mob - * - * @return nothing - */ +/** + * This is called on user logout + * Closes/clears all uis attached to the user's `/mob` + * + * * user - The user's `/mob` + */ /datum/controller/subsystem/processing/nanoui/proc/user_logout(mob/user) return close_user_uis(user) - /** - * This is called when a player transfers from one mob to another - * Transfers all open UIs to the new mob - * - * @param oldMob /mob The user's old mob - * @param newMob /mob The user's new mob - * - * @return nothing - */ +/** + * This is called when a player transfers from one mob to another + * Transfers all open UIs to the new mob + * + * * oldMob - The user's old `/mob` + * * newMob - The user's new `/mob` + */ /datum/controller/subsystem/processing/nanoui/proc/user_transferred(mob/oldMob, mob/newMob) //testing("nanomanager/user_transferred from mob [oldMob.name] to mob [newMob.name]") if (!oldMob || !LAZYLEN(oldMob.open_uis) || !LAZYLEN(open_uis)) diff --git a/code/controllers/subsystems/radio.dm b/code/controllers/subsystems/radio.dm index e6db57d55ae..32e39f0b213 100644 --- a/code/controllers/subsystems/radio.dm +++ b/code/controllers/subsystems/radio.dm @@ -1,63 +1,64 @@ /* - HOW IT WORKS + HOW IT WORKS SSradio is a subsystem responsible for maintaining all radio transmissions, think about it as about "ether". - Note that walkie-talkie, intercoms and headsets handle transmission using nonstandard way. - procs: + Note that walkie-talkie, intercoms and headsets handle transmission using nonstandard way. + procs: add_object(obj/device as obj, var/new_frequency as num, var/filter as text|null = null) - Adds listening object. - parameters: + Adds listening object. + parameters: device - device receiving signals, must have proc receive_signal (see description below). - one device may listen several frequencies, but not same frequency twice. + one device may listen several frequencies, but not same frequency twice. new_frequency - see possibly frequencies below; filter - thing for optimization. Optional, but recommended. - All filters should be consolidated in this file, see defines later. - Device without listening filter will receive all signals (on specified frequency). - Device with filter will receive any signals sent without filter. - Device with filter will not receive any signals sent with different filter. - returns: - Reference to frequency object. + All filters should be consolidated in this file, see defines later. + Device without listening filter will receive all signals (on specified frequency). + Device with filter will receive any signals sent without filter. + Device with filter will not receive any signals sent with different filter. + returns: + Reference to frequency object. remove_object (obj/device, old_frequency) - Obliviously, after calling this proc, device will not receive any signals on old_frequency. - Other frequencies will left unaffected. + Obliviously, after calling this proc, device will not receive any signals on old_frequency. + Other frequencies will left unaffected. - return_frequency(var/frequency as num) - returns: - Reference to frequency object. Use it if you need to send and do not need to listen. + return_frequency(var/frequency as num) + returns: + Reference to frequency object. Use it if you need to send and do not need to listen. - radio_frequency is a global object maintaining list of devices that listening specific frequency. - procs: + radio_frequency is a global object maintaining list of devices that listening specific frequency. + + procs: post_signal(obj/source as obj|null, datum/signal/signal, var/filter as text|null = null, var/range as num|null = null) - Sends signal to all devices that wants such signal. - parameters: - source - object, emitted signal. Usually, devices will not receive their own signals. - signal - see description below. - filter - described above. - range - radius of regular byond's square circle on that z-level. null means everywhere, on all z-levels. - - obj/proc/receive_signal(datum/signal/signal, var/receive_method as num, var/receive_param) - Handler from received signals. By default does nothing. Define your own for your object. - Avoid of sending signals directly from this proc, use spawn(-1). DO NOT use sleep() here or call procs that sleep please. If you must, use spawn() - parameters: - signal - see description below. Extract all needed data from the signal before doing sleep(), spawn() or return! - receive_method - may be TRANSMISSION_WIRE or TRANSMISSION_RADIO. - TRANSMISSION_WIRE is currently unused. - receive_param - for TRANSMISSION_RADIO here comes frequency. - - datum/signal - vars: - source - an object that emitted signal. Used for debug and bearing. - data - list with transmitting data. Usual use pattern: + Sends signal to all devices that wants such signal. + parameters: + source - object, emitted signal. Usually, devices will not receive their own signals. + signal - see description below. + filter - described above. + range - radius of regular byond's square circle on that z-level. null means everywhere, on all z-levels. + + obj/proc/receive_signal(datum/signal/signal, var/receive_method as num, var/receive_param) + Handler from received signals. By default does nothing. Define your own for your object. + Avoid of sending signals directly from this proc, use spawn(-1). DO NOT use sleep() here or call procs that sleep please. If you must, use spawn() + parameters: + signal - see description below. Extract all needed data from the signal before doing sleep(), spawn() or return! + receive_method - may be TRANSMISSION_WIRE or TRANSMISSION_RADIO. + TRANSMISSION_WIRE is currently unused. + receive_param - for TRANSMISSION_RADIO here comes frequency. + + datum/signal + vars: + source + an object that emitted signal. Used for debug and bearing. + data + list with transmitting data. Usual use pattern: data["msg"] = "hello world" encryption - Some number symbolizing "encryption key". - Note that game actually do not use any cryptography here. - If receiving object don't know right key, it must ignore encrypted signal in its receive_signal. + Some number symbolizing "encryption key". + Note that game actually do not use any cryptography here. + If receiving object don't know right key, it must ignore encrypted signal in its receive_signal. */ diff --git a/code/controllers/subsystems/timer.dm b/code/controllers/subsystems/timer.dm index f67038e3c6b..594e9ba9adb 100644 --- a/code/controllers/subsystems/timer.dm +++ b/code/controllers/subsystems/timer.dm @@ -8,14 +8,14 @@ #define TIMER_ID_MAX (2**24) /** - * # Timer Subsystem - * - * Handles creation, callbacks, and destruction of timed events. - * - * It is important to understand the buckets used in the timer subsystem are just a series of circular doubly-linked - * lists. The object at a given index in bucket_list is a /datum/timedevent, the head of a circular list, which has prev - * and next references for the respective elements in that bucket's circular list. - */ + * # Timer Subsystem + * + * Handles creation, callbacks, and destruction of timed events. + * + * It is important to understand the buckets used in the timer subsystem are just a series of circular doubly-linked + * lists. The object at a given index in bucket_list is a /datum/timedevent, the head of a circular list, which has prev + * and next references for the respective elements in that bucket's circular list. + */ SUBSYSTEM_DEF(timer) name = "Timer" wait = 1 //SS_TICKER subsystem, so wait is in ticks @@ -228,8 +228,8 @@ SUBSYSTEM_DEF(timer) . += ", NO CALLBACK" /** - * Destroys the existing buckets and creates new buckets from the existing timed events - */ + * Destroys the existing buckets and creates new buckets from the existing timed events + */ /datum/controller/subsystem/timer/proc/reset_buckets() LOG_DEBUG("Timer buckets have been reset, this may cause timers to lag") bucket_reset_count++ @@ -337,14 +337,14 @@ SUBSYSTEM_DEF(timer) bucket_list |= SStimer.bucket_list /** - * # Timed Event - * - * This is the actual timer, it contains the callback and necessary data to maintain - * the timer. - * - * See the documentation for the timer subsystem for an explanation of the buckets referenced - * below in next and prev - */ + * # Timed Event + * + * This is the actual timer, it contains the callback and necessary data to maintain + * the timer. + * + * See the documentation for the timer subsystem for an explanation of the buckets referenced + * below in next and prev + */ /datum/timedevent /// ID used for timers when the TIMER_STOPPABLE flag is present var/id @@ -439,8 +439,8 @@ SUBSYSTEM_DEF(timer) return QDEL_HINT_IWILLGC /** - * Removes this timed event from any relevant buckets, or the secondary queue - */ + * Removes this timed event from any relevant buckets, or the secondary queue + */ /datum/timedevent/proc/bucketEject() // Store local references for the bucket list and secondary queue // This is faster than referencing them from the datum itself @@ -477,13 +477,13 @@ SUBSYSTEM_DEF(timer) bucket_joined = FALSE /** - * Attempts to add this timed event to a bucket, will enter the secondary queue - * if there are no appropriate buckets at this time. - * - * Secondary queueing of timed events will occur when the timespan covered by the existing - * buckets is exceeded by the time at which this timed event is scheduled to be invoked. - * If the timed event is tracking client time, it will be added to a special bucket. - */ + * Attempts to add this timed event to a bucket, will enter the secondary queue + * if there are no appropriate buckets at this time. + * + * Secondary queueing of timed events will occur when the timespan covered by the existing + * buckets is exceeded by the time at which this timed event is scheduled to be invoked. + * If the timed event is tracking client time, it will be added to a special bucket. + */ /datum/timedevent/proc/bucketJoin() // Generate debug-friendly name for timer var/static/list/bitfield_flags = list("TIMER_UNIQUE", "TIMER_OVERRIDE", "TIMER_CLIENT_TIME", "TIMER_STOPPABLE", "TIMER_NO_HASH_WAIT", "TIMER_LOOP") @@ -534,8 +534,8 @@ SUBSYSTEM_DEF(timer) bucket_list[bucket_pos] = src /** - * Returns a string of the type of the callback for this timer - */ + * Returns a string of the type of the callback for this timer + */ /datum/timedevent/proc/getcallingtype() . = "ERROR" if (callBack.object == GLOBAL_PROC) diff --git a/code/controllers/verbs.dm b/code/controllers/verbs.dm index e7e8aa9b1ed..e9ea9b4a7a3 100644 --- a/code/controllers/verbs.dm +++ b/code/controllers/verbs.dm @@ -23,5 +23,5 @@ available_controllers["Evacuation Main Controller"] = evacuation_controller var/css = input("What controller would you like to debug?", "Controllers") as null|anything in available_controllers debug_variables(available_controllers[css]) - + message_admins("Admin [key_name_admin(usr)] is debugging the [css] controller.") diff --git a/code/datums/components/_component.dm b/code/datums/components/_component.dm index f3c27d9a407..fe4def40e92 100644 --- a/code/datums/components/_component.dm +++ b/code/datums/components/_component.dm @@ -1,40 +1,40 @@ /** - * # Component - * - * The component datum - * - * A component should be a single standalone unit - * of functionality, that works by receiving signals from it's parent - * object to provide some single functionality (i.e a slippery component) - * that makes the object it's attached to cause people to slip over. - * Useful when you want shared behaviour independent of type inheritance - */ + * # Component + * + * The component datum + * + * A component should be a single standalone unit + * of functionality, that works by receiving signals from it's parent + * object to provide some single functionality (i.e a slippery component) + * that makes the object it's attached to cause people to slip over. + * Useful when you want shared behaviour independent of type inheritance + */ /datum/component /// Defines how duplicate existing components are handled when added to a datum /// See `COMPONENT_DUPE_*` definitions for available options var/dupe_mode = COMPONENT_DUPE_HIGHLANDER - + /// The type to check for duplication /// `null` means exact match on `type` (default) /// Any other type means that and all subtypes var/dupe_type - + /// The datum this components belongs to var/datum/parent - + /// Only set to true if you are able to properly transfer this component /// At a minimum RegisterWithParent and UnregisterFromParent should be used /// Make sure you also implement PostTransfer for any post transfer handling var/can_transfer = FALSE /** - * Create a new component. - * - * Additional arguments are passed to [Initialize()][/datum/component/proc/Initialize] - * - * Arguments: - * * datum/P the parent datum this component reacts to signals from - */ + * Create a new component. + * + * Additional arguments are passed to [Initialize()][/datum/component/proc/Initialize] + * + * Arguments: + * * datum/P the parent datum this component reacts to signals from + */ /datum/component/New(list/raw_args) parent = raw_args[1] var/list/arguments = raw_args.Copy(2) @@ -46,17 +46,17 @@ _JoinParent(parent) /** - * Called during component creation with the same arguments as in new excluding parent. - * Do not call `qdel(src)` from this function, `return COMPONENT_INCOMPATIBLE` instead - */ + * Called during component creation with the same arguments as in new excluding parent. + * Do not call `qdel(src)` from this function, `return COMPONENT_INCOMPATIBLE` instead + */ /datum/component/proc/Initialize(...) return /** - * Properly removes the component from `parent` and cleans up references - * Setting `force` makes it not check for and remove the component from the parent - * Setting `silent` deletes the component without sending a `COMSIG_COMPONENT_REMOVING` signal - */ + * Properly removes the component from `parent` and cleans up references + * Setting `force` makes it not check for and remove the component from the parent + * Setting `silent` deletes the component without sending a `COMSIG_COMPONENT_REMOVING` signal + */ /datum/component/Destroy(force=FALSE, silent=FALSE) if(!force && parent) _RemoveFromParent() @@ -66,8 +66,8 @@ return ..() /** - * Internal proc to handle behaviour of components when joining a parent - */ + * Internal proc to handle behaviour of components when joining a parent + */ /datum/component/proc/_JoinParent() var/datum/P = parent //lazy init the parent's dc list @@ -104,8 +104,8 @@ RegisterWithParent() /** - * Internal proc to handle behaviour when being removed from a parent - */ + * Internal proc to handle behaviour when being removed from a parent + */ /datum/component/proc/_RemoveFromParent() var/datum/P = parent var/list/dc = P.datum_components @@ -125,37 +125,37 @@ UnregisterFromParent() /** - * Register the component with the parent object - * - * Use this proc to register with your parent object - * Overridable proc that's called when added to a new parent - */ + * Register the component with the parent object + * + * Use this proc to register with your parent object + * Overridable proc that's called when added to a new parent + */ /datum/component/proc/RegisterWithParent() return /** - * Unregister from our parent object - * - * Use this proc to unregister from your parent object - * Overridable proc that's called when removed from a parent - * * - */ + * Unregister from our parent object + * + * Use this proc to unregister from your parent object + * Overridable proc that's called when removed from a parent + * + */ /datum/component/proc/UnregisterFromParent() return /** - * Register to listen for a signal from the passed in target - * - * This sets up a listening relationship such that when the target object emits a signal - * the source datum this proc is called upon, will recieve a callback to the given proctype - * Return values from procs registered must be a bitfield - * - * Arguments: - * * datum/target The target to listen for signals from - * * sig_type_or_types Either a string signal name, or a list of signal names (strings) - * * proctype The proc to call back when the signal is emitted - * * override If a previous registration exists you must explicitly set this - */ + * Register to listen for a signal from the passed in target + * + * This sets up a listening relationship such that when the target object emits a signal + * the source datum this proc is called upon, will recieve a callback to the given proctype + * Return values from procs registered must be a bitfield + * + * Arguments: + * * datum/target The target to listen for signals from + * * sig_type_or_types Either a string signal name, or a list of signal names (strings) + * * proctype The proc to call back when the signal is emitted + * * override If a previous registration exists you must explicitly set this + */ /datum/proc/RegisterSignal(datum/target, sig_type_or_types, proctype, override = FALSE) if(QDELETED(src) || QDELETED(target)) return @@ -189,15 +189,15 @@ signal_enabled = TRUE /** - * Stop listening to a given signal from target - * - * Breaks the relationship between target and source datum, removing the callback when the signal fires - * Doesn't care if a registration exists or not - * - * Arguments: - * * datum/target Datum to stop listening to signals from - * * sig_typeor_types Signal string key or list of signal keys to stop listening to specifically - */ + * Stop listening to a given signal from target + * + * Breaks the relationship between target and source datum, removing the callback when the signal fires + * Doesn't care if a registration exists or not + * + * Arguments: + * * datum/target Datum to stop listening to signals from + * * sig_typeor_types Signal string key or list of signal keys to stop listening to specifically + */ /datum/proc/UnregisterSignal(datum/target, sig_type_or_types) var/list/lookup = target.comp_lookup if(!signal_procs || !signal_procs[target] || !lookup) @@ -228,47 +228,47 @@ signal_procs -= target /** - * Called on a component when a component of the same type was added to the same parent - * See `/datum/component/var/dupe_mode` - * `C`'s type will always be the same of the called component - */ + * Called on a component when a component of the same type was added to the same parent + * See `/datum/component/var/dupe_mode` + * `C`'s type will always be the same of the called component + */ /datum/component/proc/InheritComponent(datum/component/C, i_am_original) return /** - * Called on a component when a component of the same type was added to the same parent with [COMPONENT_DUPE_SELECTIVE] - * - * See [/datum/component/var/dupe_mode] - * - * `C`'s type will always be the same of the called component - * - * return TRUE if you are absorbing the component, otherwise FALSE if you are fine having it exist as a duplicate component - */ + * Called on a component when a component of the same type was added to the same parent with [COMPONENT_DUPE_SELECTIVE] + * + * See [/datum/component/var/dupe_mode] + * + * `C`'s type will always be the same of the called component + * + * return TRUE if you are absorbing the component, otherwise FALSE if you are fine having it exist as a duplicate component + */ /datum/component/proc/CheckDupeComponent(datum/component/C, ...) return /** - * Callback Just before this component is transferred - * - * Use this to do any special cleanup you might need to do before being deregged from an object - * - */ + * Callback Just before this component is transferred + * + * Use this to do any special cleanup you might need to do before being deregged from an object + * + */ /datum/component/proc/PreTransfer() return /** - * Callback Just after a component is transferred - * - * Use this to do any special setup you need to do after being moved to a new object - * Do not call `qdel(src)` from this function, `return COMPONENT_INCOMPATIBLE` instead - * - */ + * Callback Just after a component is transferred + * + * Use this to do any special setup you need to do after being moved to a new object + * Do not call `qdel(src)` from this function, `return COMPONENT_INCOMPATIBLE` instead + * + */ /datum/component/proc/PostTransfer() return COMPONENT_INCOMPATIBLE //Do not support transfer by default as you must properly support it /** - * Internal proc to create a list of our type and all parent types - */ + * Internal proc to create a list of our type and all parent types + */ /datum/component/proc/_GetInverseTypeList(our_type = type) //we can do this one simple trick var/current_type = parent_type @@ -279,10 +279,10 @@ . += current_type /** - * Internal proc to handle most all of the signaling procedure - * Will runtime if used on datums with an empty component list - * Use the `SEND_SIGNAL` define instead - */ + * Internal proc to handle most all of the signaling procedure + * Will runtime if used on datums with an empty component list + * Use the `SEND_SIGNAL` define instead + */ /datum/proc/_SendSignal(sigtype, list/arguments) var/target = comp_lookup[sigtype] if(!length(target)) @@ -303,12 +303,12 @@ // The type arg is casted so initial works, you shouldn't be passing a real instance into this /** - * Return any component assigned to this datum of the given type - * This will throw an error if it's possible to have more than one component of that type on the parent - * - * Arguments: - * * datum/component/c_type The typepath of the component you want to get a reference to - */ + * Return any component assigned to this datum of the given type + * This will throw an error if it's possible to have more than one component of that type on the parent + * + * Arguments: + * * datum/component/c_type The typepath of the component you want to get a reference to + */ /datum/proc/GetComponent(datum/component/c_type) RETURN_TYPE(c_type) if(initial(c_type.dupe_mode) == COMPONENT_DUPE_ALLOWED) @@ -322,12 +322,12 @@ // The type arg is casted so initial works, you shouldn't be passing a real instance into this /** - * Return any component assigned to this datum of the exact given type - * This will throw an error if it's possible to have more than one component of that type on the parent - * - * Arguments: - * * datum/component/c_type The typepath of the component you want to get a reference to - */ + * Return any component assigned to this datum of the exact given type + * This will throw an error if it's possible to have more than one component of that type on the parent + * + * Arguments: + * * datum/component/c_type The typepath of the component you want to get a reference to + */ /datum/proc/GetExactComponent(datum/component/c_type) RETURN_TYPE(c_type) if(initial(c_type.dupe_mode) == COMPONENT_DUPE_ALLOWED) @@ -344,11 +344,11 @@ return null /** - * Get all components of a given type that are attached to this datum - * - * Arguments: - * * c_type The component type path - */ + * Get all components of a given type that are attached to this datum + * + * Arguments: + * * c_type The component type path + */ /datum/proc/GetComponents(c_type) var/list/dc = datum_components if(!dc) @@ -358,12 +358,12 @@ return list(.) /** - * Creates an instance of `new_type` in the datum and attaches to it as parent - * Sends the `COMSIG_COMPONENT_ADDED` signal to the datum - * Returns the component that was created. Or the old component in a dupe situation where `COMPONENT_DUPE_UNIQUE` was set - * If this tries to add an component to an incompatible type, the component will be deleted and the result will be `null`. This is very unperformant, try not to do it - * Properly handles duplicate situations based on the `dupe_mode` var - */ + * Creates an instance of `new_type` in the datum and attaches to it as parent + * Sends the `COMSIG_COMPONENT_ADDED` signal to the datum + * Returns the component that was created. Or the old component in a dupe situation where `COMPONENT_DUPE_UNIQUE` was set + * If this tries to add an component to an incompatible type, the component will be deleted and the result will be `null`. This is very unperformant, try not to do it + * Properly handles duplicate situations based on the `dupe_mode` var + */ /datum/proc/_AddComponent(list/raw_args) var/new_type = raw_args[1] var/datum/component/nt = new_type @@ -431,22 +431,22 @@ return old_comp /** - * Get existing component of type, or create it and return a reference to it - * - * Use this if the item needs to exist at the time of this call, but may not have been created before now - * - * Arguments: - * * component_type The typepath of the component to create or return - * * ... additional arguments to be passed when creating the component if it does not exist - */ + * Get existing component of type, or create it and return a reference to it + * + * Use this if the item needs to exist at the time of this call, but may not have been created before now + * + * Arguments: + * * component_type The typepath of the component to create or return + * * ... additional arguments to be passed when creating the component if it does not exist + */ /datum/proc/LoadComponent(component_type, ...) . = GetComponent(component_type) if(!.) return _AddComponent(args) /** - * Removes the component from parent, ends up with a null parent - */ + * Removes the component from parent, ends up with a null parent + */ /datum/component/proc/RemoveComponent() if(!parent) return @@ -457,13 +457,13 @@ SEND_SIGNAL(old_parent, COMSIG_COMPONENT_REMOVING, src) /** - * Transfer this component to another parent - * - * Component is taken from source datum - * - * Arguments: - * * datum/component/target Target datum to transfer to - */ + * Transfer this component to another parent + * + * Component is taken from source datum + * + * Arguments: + * * datum/component/target Target datum to transfer to + */ /datum/proc/TakeComponent(datum/component/target) if(!target || target.parent == src) return @@ -481,13 +481,13 @@ target._JoinParent() /** - * Transfer all components to target - * - * All components from source datum are taken - * - * Arguments: - * * /datum/target the target to move the components to - */ + * Transfer all components to target + * + * All components from source datum are taken + * + * Arguments: + * * /datum/target the target to move the components to + */ /datum/proc/TransferComponents(datum/target) var/list/dc = datum_components if(!dc) @@ -503,7 +503,7 @@ target.TakeComponent(comps) /** - * Return the object that is the host of any UI's that this component has - */ + * Return the object that is the host of any UI's that this component has + */ /datum/component/ui_host() return parent diff --git a/code/datums/components/armor/armor.dm b/code/datums/components/armor/armor.dm index 7b5ecffb435..155469d2dcd 100644 --- a/code/datums/components/armor/armor.dm +++ b/code/datums/components/armor/armor.dm @@ -116,4 +116,4 @@ active = new_state /datum/component/armor/toggle/get_value(key) - return active ? ..() : 0 \ No newline at end of file + return active ? ..() : 0 diff --git a/code/datums/components/turf_click/turf_hand.dm b/code/datums/components/turf_click/turf_hand.dm index 9f31948f5f8..82e112f0f3c 100644 --- a/code/datums/components/turf_click/turf_hand.dm +++ b/code/datums/components/turf_click/turf_hand.dm @@ -16,4 +16,4 @@ src.priority = priority /datum/component/turf_hand/proc/OnHandInterception(var/mob/user) - return our_owner.attack_hand(user) \ No newline at end of file + return our_owner.attack_hand(user) diff --git a/code/datums/elements/_element.dm b/code/datums/elements/_element.dm index b957061fa01..e2ebd4ad423 100644 --- a/code/datums/elements/_element.dm +++ b/code/datums/elements/_element.dm @@ -1,19 +1,19 @@ /** - * A holder for simple behaviour that can be attached to many different types - * - * Only one element of each type is instanced during game init. - * Otherwise acts basically like a lightweight component. - */ + * A holder for simple behaviour that can be attached to many different types + * + * Only one element of each type is instanced during game init. + * Otherwise acts basically like a lightweight component. + */ /datum/element /// Option flags for element behaviour var/element_flags = NONE /** - * The index of the first attach argument to consider for duplicate elements - * - * Is only used when flags contains [ELEMENT_BESPOKE] - * - * This is infinity so you must explicitly set this - */ + * The index of the first attach argument to consider for duplicate elements + * + * Is only used when flags contains [ELEMENT_BESPOKE] + * + * This is infinity so you must explicitly set this + */ var/id_arg_index = INFINITY /// Activates the functionality defined by the element on the given target datum @@ -47,9 +47,9 @@ CRASH("Incompatible [arguments[1]] assigned to a [type]! args: [json_encode(args)]") /** - * Finds the singleton for the element type given and detaches it from src - * You only need additional arguments beyond the type if you're using [ELEMENT_BESPOKE] - */ + * Finds the singleton for the element type given and detaches it from src + * You only need additional arguments beyond the type if you're using [ELEMENT_BESPOKE] + */ /datum/proc/_RemoveElement(list/arguments) var/datum/element/ele = SSdcs.GetElement(arguments) ele.Detach(src) diff --git a/code/datums/ert/outsider.dm b/code/datums/ert/outsider.dm index 62800dc8e04..56314cd8da3 100644 --- a/code/datums/ert/outsider.dm +++ b/code/datums/ert/outsider.dm @@ -46,4 +46,4 @@ name = "Elyran Navy" chance = 15 spawner = /datum/ghostspawner/human/ert/elyra - possible_space_sector = list(SECTOR_BADLANDS, SECTOR_NEW_ANKARA, SECTOR_VALLEY_HALE, SECTOR_AEMAQ) \ No newline at end of file + possible_space_sector = list(SECTOR_BADLANDS, SECTOR_NEW_ANKARA, SECTOR_VALLEY_HALE, SECTOR_AEMAQ) diff --git a/code/datums/ert/tcfl.dm b/code/datums/ert/tcfl.dm index 0d191effe8d..2ebd0cc163d 100644 --- a/code/datums/ert/tcfl.dm +++ b/code/datums/ert/tcfl.dm @@ -2,4 +2,4 @@ name = "Tau Ceti Foreign Legion" chance = 20 spawner = /datum/ghostspawner/human/ert/tcfl - possible_space_sector = list(SECTOR_ROMANOVICH, SECTOR_TAU_CETI, SECTOR_CORP_ZONE) \ No newline at end of file + possible_space_sector = list(SECTOR_ROMANOVICH, SECTOR_TAU_CETI, SECTOR_CORP_ZONE) diff --git a/code/datums/helper_datums/getrev.dm b/code/datums/helper_datums/getrev.dm index 8e8e9ea4875..9caef196278 100644 --- a/code/datums/helper_datums/getrev.dm +++ b/code/datums/helper_datums/getrev.dm @@ -72,8 +72,8 @@ var/global/datum/getrev/revdata = new() /datum/getrev/proc/generate_greeting_info() if (!test_merges.len) greeting_info = {"
There are currently [test_merges.len] PRs being tested live.
", diff --git a/code/datums/looping_sounds/revenant_rift.dm b/code/datums/looping_sounds/revenant_rift.dm index 98458f8d222..6247db47522 100644 --- a/code/datums/looping_sounds/revenant_rift.dm +++ b/code/datums/looping_sounds/revenant_rift.dm @@ -4,4 +4,4 @@ mid_sounds = list('sound/ambience/tension/horror.ogg' = 1) mid_length = 260 end_sound = list('sound/effects/psi/power_feedback.ogg' = 1) - volume = 80 \ No newline at end of file + volume = 80 diff --git a/code/datums/looping_sounds/thermal_drill.dm b/code/datums/looping_sounds/thermal_drill.dm index d4a20647f2b..3346d7e0e06 100644 --- a/code/datums/looping_sounds/thermal_drill.dm +++ b/code/datums/looping_sounds/thermal_drill.dm @@ -1,4 +1,4 @@ /datum/looping_sound/thermal_drill mid_sounds = list('sound/items/thermal_drill.ogg' = 1) mid_length = 19 - volume = 30 \ No newline at end of file + volume = 30 diff --git a/code/datums/observation/_debug.dm b/code/datums/observation/_debug.dm index 602a2b3d235..9e481f9fdf7 100644 --- a/code/datums/observation/_debug.dm +++ b/code/datums/observation/_debug.dm @@ -1,4 +1,4 @@ /**************** * Debug Support * ****************/ -var/list/all_observable_events = list() \ No newline at end of file +var/list/all_observable_events = list() diff --git a/code/datums/observation/entered.dm b/code/datums/observation/entered.dm index a96d43d525b..5ad4d7a420d 100644 --- a/code/datums/observation/entered.dm +++ b/code/datums/observation/entered.dm @@ -21,4 +21,4 @@ var/singleton/observ/entered/entered_event = new() /atom/Entered(atom/movable/enterer, atom/old_loc) ..() - entered_event.raise_event(src, enterer, old_loc) \ No newline at end of file + entered_event.raise_event(src, enterer, old_loc) diff --git a/code/datums/observation/exited.dm b/code/datums/observation/exited.dm index 8b504f757ef..a3450e06707 100644 --- a/code/datums/observation/exited.dm +++ b/code/datums/observation/exited.dm @@ -21,4 +21,4 @@ var/singleton/observ/exited/exited_event = new() /atom/Exited(atom/movable/exitee, atom/new_loc) . = ..() - exited_event.raise_event(src, exitee, new_loc) \ No newline at end of file + exited_event.raise_event(src, exitee, new_loc) diff --git a/code/datums/observation/helpers.dm b/code/datums/observation/helpers.dm index 8a0df1d560a..f3218309638 100644 --- a/code/datums/observation/helpers.dm +++ b/code/datums/observation/helpers.dm @@ -18,4 +18,4 @@ // Sometimes you just want to end yourself /datum/proc/qdel_self() - qdel(src) \ No newline at end of file + qdel(src) diff --git a/code/datums/observation/instruments.dm b/code/datums/observation/instruments.dm index 335627bded2..5d4e77e4608 100644 --- a/code/datums/observation/instruments.dm +++ b/code/datums/observation/instruments.dm @@ -9,4 +9,4 @@ var/singleton/observ/instrument_synchronizer/instrument_synchronizer = new() /singleton/observ/instrument_synchronizer name = "Instrument synchronizer" - expected_type = /datum \ No newline at end of file + expected_type = /datum diff --git a/code/datums/observation/see_in_dark_set.dm b/code/datums/observation/see_in_dark_set.dm index 115e3b44a11..31f62e6e233 100644 --- a/code/datums/observation/see_in_dark_set.dm +++ b/code/datums/observation/see_in_dark_set.dm @@ -22,4 +22,4 @@ var/singleton/observ/see_in_dark_set/see_in_dark_set_event = new() var/old_see_in_dark = sight if(old_see_in_dark != new_see_in_dark) see_in_dark = new_see_in_dark - see_in_dark_set_event.raise_event(src, old_see_in_dark, new_see_in_dark) \ No newline at end of file + see_in_dark_set_event.raise_event(src, old_see_in_dark, new_see_in_dark) diff --git a/code/datums/observation/see_invisible_set.dm b/code/datums/observation/see_invisible_set.dm index 5d477b55636..383dd52cb7a 100644 --- a/code/datums/observation/see_invisible_set.dm +++ b/code/datums/observation/see_invisible_set.dm @@ -22,4 +22,4 @@ var/singleton/observ/see_invisible_set/see_invisible_set_event = new() var/old_see_invisible = see_invisible if(old_see_invisible != new_see_invisible) see_invisible = new_see_invisible - see_invisible_set_event.raise_event(src, old_see_invisible, new_see_invisible) \ No newline at end of file + see_invisible_set_event.raise_event(src, old_see_invisible, new_see_invisible) diff --git a/code/datums/observation/shuttle_moved.dm b/code/datums/observation/shuttle_moved.dm index bd0fc5401ea..9f051c63ed3 100644 --- a/code/datums/observation/shuttle_moved.dm +++ b/code/datums/observation/shuttle_moved.dm @@ -35,4 +35,4 @@ var/singleton/observ/shuttle_pre_move/shuttle_pre_move_event = new() *****************/ // Located in modules/shuttle/shuttle.dm -// Proc: /datum/shuttle/proc/attempt_move() \ No newline at end of file +// Proc: /datum/shuttle/proc/attempt_move() diff --git a/code/datums/observation/sight_set.dm b/code/datums/observation/sight_set.dm index 6130634ce4a..3c990af7968 100644 --- a/code/datums/observation/sight_set.dm +++ b/code/datums/observation/sight_set.dm @@ -22,4 +22,4 @@ var/singleton/observ/sight_set/sight_set_event = new() var/old_sight = sight if(old_sight != new_sight) sight = new_sight - sight_set_event.raise_event(src, old_sight, new_sight) \ No newline at end of file + sight_set_event.raise_event(src, old_sight, new_sight) diff --git a/code/datums/outfits/ert/ap_eridani.dm b/code/datums/outfits/ert/ap_eridani.dm index 3c00ada76d2..48d58ecb6f4 100644 --- a/code/datums/outfits/ert/ap_eridani.dm +++ b/code/datums/outfits/ert/ap_eridani.dm @@ -117,12 +117,12 @@ belt_contents = list( /obj/item/reagent_containers/hypospray/combat/empty = 1, - /obj/item/reagent_containers/glass/bottle/inaprovaline = 1, - /obj/item/reagent_containers/glass/bottle/antitoxin = 1, - /obj/item/reagent_containers/glass/bottle/dexalin_plus = 1, - /obj/item/reagent_containers/glass/bottle/butazoline = 1, - /obj/item/reagent_containers/glass/bottle/dermaline = 1, - /obj/item/reagent_containers/glass/bottle/perconol = 1, + /obj/item/reagent_containers/glass/bottle/inaprovaline = 1, + /obj/item/reagent_containers/glass/bottle/antitoxin = 1, + /obj/item/reagent_containers/glass/bottle/dexalin_plus = 1, + /obj/item/reagent_containers/glass/bottle/butazoline = 1, + /obj/item/reagent_containers/glass/bottle/dermaline = 1, + /obj/item/reagent_containers/glass/bottle/perconol = 1, /obj/item/storage/pill_bottle/mortaphenyl = 1 ) @@ -156,11 +156,11 @@ belt_contents = list( /obj/item/reagent_containers/hypospray/combat/empty = 1, - /obj/item/reagent_containers/glass/bottle/inaprovaline = 1, - /obj/item/reagent_containers/glass/bottle/antitoxin = 1, - /obj/item/reagent_containers/glass/bottle/dexalin_plus = 1, - /obj/item/reagent_containers/glass/bottle/butazoline = 1, - /obj/item/reagent_containers/glass/bottle/dermaline = 1, - /obj/item/reagent_containers/glass/bottle/perconol = 1, + /obj/item/reagent_containers/glass/bottle/inaprovaline = 1, + /obj/item/reagent_containers/glass/bottle/antitoxin = 1, + /obj/item/reagent_containers/glass/bottle/dexalin_plus = 1, + /obj/item/reagent_containers/glass/bottle/butazoline = 1, + /obj/item/reagent_containers/glass/bottle/dermaline = 1, + /obj/item/reagent_containers/glass/bottle/perconol = 1, /obj/item/melee/baton/stunrod = 1 ) diff --git a/code/datums/outfits/ert/deathsquad.dm b/code/datums/outfits/ert/deathsquad.dm index f8af21a9a0c..3e081fd8616 100644 --- a/code/datums/outfits/ert/deathsquad.dm +++ b/code/datums/outfits/ert/deathsquad.dm @@ -67,4 +67,4 @@ if(mercrig) H.put_in_hands(mercrig) H.equip_to_slot_or_del(mercrig, slot_back) - addtimer(CALLBACK(mercrig, TYPE_PROC_REF(/obj/item/rig, toggle_seals), H, TRUE), 2 SECONDS) \ No newline at end of file + addtimer(CALLBACK(mercrig, TYPE_PROC_REF(/obj/item/rig, toggle_seals), H, TRUE), 2 SECONDS) diff --git a/code/datums/outfits/ert/fsf.dm b/code/datums/outfits/ert/fsf.dm index 02726637724..607d3ce4543 100644 --- a/code/datums/outfits/ert/fsf.dm +++ b/code/datums/outfits/ert/fsf.dm @@ -16,14 +16,14 @@ backpack_contents = list( /obj/item/melee/energy/sword/knife/sol = 1 - ) + ) belt_contents = list( /obj/item/ammo_magazine/c762/sol = 1, /obj/item/ammo_magazine/mc9mm = 2, /obj/item/handcuffs/ziptie = 2, /obj/item/grenade/frag = 1 - ) + ) accessory = /obj/item/clothing/accessory/holster/hip/brown accessory_contents = list(/obj/item/gun/projectile/pistol/sol = 1) diff --git a/code/datums/outfits/ert/syndicate.dm b/code/datums/outfits/ert/syndicate.dm index 1204cb86ad7..e5c33c8536c 100644 --- a/code/datums/outfits/ert/syndicate.dm +++ b/code/datums/outfits/ert/syndicate.dm @@ -27,4 +27,4 @@ /datum/outfit/admin/deathsquad/syndicate/leader name = "Syndicate Commando Lead" - l_pocket = /obj/item/pinpointer \ No newline at end of file + l_pocket = /obj/item/pinpointer diff --git a/code/datums/repositories/sound_channels.dm b/code/datums/repositories/sound_channels.dm index 76dda7c8b7d..9a11339f9ad 100644 --- a/code/datums/repositories/sound_channels.dm +++ b/code/datums/repositories/sound_channels.dm @@ -47,4 +47,4 @@ var/repository/sound_channels/sound_channels = new() /repository/sound_channels/proc/ReleaseChannels(list/channels) for(var/channel in channels) LAZYREMOVE(keys_by_channel, "[channel]") - available_channels.Push(channel) \ No newline at end of file + available_channels.Push(channel) diff --git a/code/datums/trading/_trading_defines.dm b/code/datums/trading/_trading_defines.dm index 10e137486b3..1e62722eda1 100644 --- a/code/datums/trading/_trading_defines.dm +++ b/code/datums/trading/_trading_defines.dm @@ -16,4 +16,4 @@ #define TRADER_NO_BLACKLISTED "trade_blacklist" #define TRADER_FOUND_UNWANTED "trade_found_unwanted" -#define TRADER_DEFAULT_NAME "Default" //Whether to just generate a name from the premade lists. \ No newline at end of file +#define TRADER_DEFAULT_NAME "Default" //Whether to just generate a name from the premade lists. diff --git a/code/datums/trading/misc.dm b/code/datums/trading/misc.dm index ecd82cd5b29..d31d848eacd 100644 --- a/code/datums/trading/misc.dm +++ b/code/datums/trading/misc.dm @@ -355,4 +355,4 @@ /obj/item/stack/material/phoron = TRADER_THIS_TYPE ) - mob_transfer_message = "You are transported to the ORIGIN. When the transportation dizziness wears off, you find you are surrounded by Golden Deep agents..." \ No newline at end of file + mob_transfer_message = "You are transported to the ORIGIN. When the transportation dizziness wears off, you find you are surrounded by Golden Deep agents..." diff --git a/code/datums/trading/ship.dm b/code/datums/trading/ship.dm index f685d5d4efb..feff14b5a6f 100644 --- a/code/datums/trading/ship.dm +++ b/code/datums/trading/ship.dm @@ -21,4 +21,4 @@ var/length = round(amt/100) duration_of_stay += length . = get_response("bribe_accept", "Sure, I'll stay for TIME more minutes.") - . = replacetext(., "TIME", length) \ No newline at end of file + . = replacetext(., "TIME", length) diff --git a/code/datums/underwear/socks.dm b/code/datums/underwear/socks.dm index adc0716927a..7cc8f6d3701 100644 --- a/code/datums/underwear/socks.dm +++ b/code/datums/underwear/socks.dm @@ -192,4 +192,4 @@ /datum/category_item/underwear/socks/fishnet_nosock name = "Fishnet Tights, Short" icon_state = "fishnet_nosock" - has_color = TRUE \ No newline at end of file + has_color = TRUE diff --git a/code/datums/uplink/devices_and_tools.dm b/code/datums/uplink/devices_and_tools.dm index 3c20390c464..5a518282834 100644 --- a/code/datums/uplink/devices_and_tools.dm +++ b/code/datums/uplink/devices_and_tools.dm @@ -78,7 +78,7 @@ /datum/uplink_item/item/tools/personal_shield name = "Personal Shield" desc = "A personal shield that, when kept in your hand and activated, will protect its user from five projectile shots. \ - This can only be bought once." + This can only be bought once." telecrystal_cost = 1 item_limit = 1 path = /obj/item/device/personal_shield diff --git a/code/datums/wires/disposals.dm b/code/datums/wires/disposals.dm index 73ba69619ee..8419b8475a3 100644 --- a/code/datums/wires/disposals.dm +++ b/code/datums/wires/disposals.dm @@ -34,4 +34,4 @@ var/const/DISPOSAL_WIRE_FLUSH = 1 var/obj/machinery/disposal/D = holder if(D.mode <= 0) return TRUE - return FALSE \ No newline at end of file + return FALSE diff --git a/code/datums/wires/vending.dm b/code/datums/wires/vending.dm index 3adc2a74556..983a12c652b 100644 --- a/code/datums/wires/vending.dm +++ b/code/datums/wires/vending.dm @@ -89,4 +89,4 @@ var/const/VENDING_WIRE_HEATING = 32 if(16) return "Cooling" if(32) - return "Heating" \ No newline at end of file + return "Heating" diff --git a/code/datums/wires/wires.dm b/code/datums/wires/wires.dm index f7044c59e82..d2da33857e0 100644 --- a/code/datums/wires/wires.dm +++ b/code/datums/wires/wires.dm @@ -159,7 +159,7 @@ var/list/wireColours = list("red", "blue", "green", "darkred", "orange", "brown" holder.add_hiddenprint(L) else to_chat(L, SPAN_WARNING("You need a multitool!")) - + // Update Window Interact(usr) diff --git a/code/defines/gases.dm b/code/defines/gases.dm index c7de5a3b7ba..0c9ae0ee564 100644 --- a/code/defines/gases.dm +++ b/code/defines/gases.dm @@ -93,4 +93,4 @@ overlay_limit = 0.5 specific_heat = 5 // J/(mol*K) molar_mass = 0.017 // kg/mol - flags = XGM_GAS_CONTAMINANT \ No newline at end of file + flags = XGM_GAS_CONTAMINANT diff --git a/code/game/antagonist/_antagonist_setup.dm b/code/game/antagonist/_antagonist_setup.dm index 3494b278531..285ffd6793a 100644 --- a/code/game/antagonist/_antagonist_setup.dm +++ b/code/game/antagonist/_antagonist_setup.dm @@ -1,17 +1,14 @@ /* - MODULAR ANTAGONIST SYSTEM - - Attempts to move all the bullshit snowflake antag tracking code into its own system, which - has the added bonus of making the display procs consistent. Still needs work/adjustment/cleanup - but should be fairly self-explanatory with a review of the procs. Will supply a few examples - of common tasks that the system will be expected to perform below. ~Z - - To use: - - Get the appropriate datum via get_antag_data("antagonist id") - using the id var of the desired /datum/antagonist ie. var/datum/antagonist/A = get_antag_data("traitor") - - Call add_antagonist() on the desired target mind ie. A.add_antagonist(mob.mind) - - To ignore protected roles, supply a positive second argument. - - To skip equipping with appropriate gear, supply a positive third argument. +MODULAR ANTAGONIST SYSTEM +Attempts to move all the bullshit snowflake antag tracking code into its own system, which +has the added bonus of making the display procs consistent. Still needs work/adjustment/cleanup +but should be fairly self-explanatory with a review of the procs. Will supply a few examples +of common tasks that the system will be expected to perform below. ~Z +To use: + - Get the appropriate datum via get_antag_data("antagonist id") using the id var of the desired /datum/antagonist ie. var/datum/antagonist/A = get_antag_data("traitor") + - Call add_antagonist() on the desired target mind ie. A.add_antagonist(mob.mind) + - To ignore protected roles, supply a positive second argument. + - To skip equipping with appropriate gear, supply a positive third argument. */ // Globals. diff --git a/code/game/antagonist/alien/borer.dm b/code/game/antagonist/alien/borer.dm index 965970e6fe3..9975fa417ae 100644 --- a/code/game/antagonist/alien/borer.dm +++ b/code/game/antagonist/alien/borer.dm @@ -68,4 +68,4 @@ var/datum/antagonist/xenos/borer/borers ..() /datum/antagonist/xenos/borer/is_obvious_antag(datum/mind/player) - return TRUE \ No newline at end of file + return TRUE diff --git a/code/game/antagonist/outsider/burglar.dm b/code/game/antagonist/outsider/burglar.dm index 9887f55e445..f49ab73be2a 100644 --- a/code/game/antagonist/outsider/burglar.dm +++ b/code/game/antagonist/outsider/burglar.dm @@ -55,4 +55,4 @@ var/datum/antagonist/burglar/burglars return TRUE /datum/antagonist/burglar/get_antag_radio() - return "Burglar" \ No newline at end of file + return "Burglar" diff --git a/code/game/antagonist/outsider/deathsquad.dm b/code/game/antagonist/outsider/deathsquad.dm index e8676e86c7b..7ac83f5c2a0 100644 --- a/code/game/antagonist/outsider/deathsquad.dm +++ b/code/game/antagonist/outsider/deathsquad.dm @@ -28,4 +28,4 @@ var/datum/antagonist/deathsquad/deathsquad /datum/antagonist/deathsquad/attempt_spawn() if(..()) - deployed = TRUE \ No newline at end of file + deployed = TRUE diff --git a/code/game/antagonist/outsider/mercenary.dm b/code/game/antagonist/outsider/mercenary.dm index c293c9bf5c1..fd7a24f53d0 100644 --- a/code/game/antagonist/outsider/mercenary.dm +++ b/code/game/antagonist/outsider/mercenary.dm @@ -53,4 +53,4 @@ var/datum/antagonist/mercenary/mercs return TRUE /datum/antagonist/mercenary/get_antag_radio() - return "Mercenary" \ No newline at end of file + return "Mercenary" diff --git a/code/game/antagonist/outsider/ninja.dm b/code/game/antagonist/outsider/ninja.dm index 09215430b26..9d0f72e8ee6 100644 --- a/code/game/antagonist/outsider/ninja.dm +++ b/code/game/antagonist/outsider/ninja.dm @@ -163,4 +163,4 @@ var/datum/antagonist/ninja/ninjas return directive /datum/antagonist/ninja/get_antag_radio() - return "Ninja" \ No newline at end of file + return "Ninja" diff --git a/code/game/antagonist/station/changeling/changeling.dm b/code/game/antagonist/station/changeling/changeling.dm index 44a782d35b7..49565e1b307 100644 --- a/code/game/antagonist/station/changeling/changeling.dm +++ b/code/game/antagonist/station/changeling/changeling.dm @@ -88,7 +88,7 @@ if(player.current.client.prefs.organ_data["torso"] == "cyborg") // Full synthetic. return 0 return 1 - return 0 + return 0 /datum/antagonist/changeling/remove_antagonist(var/datum/mind/player, var/show_message = TRUE, var/implanted) . = ..() diff --git a/code/game/antagonist/station/changeling/morph.dm b/code/game/antagonist/station/changeling/morph.dm index fac79d12b5c..786c2742c57 100644 --- a/code/game/antagonist/station/changeling/morph.dm +++ b/code/game/antagonist/station/changeling/morph.dm @@ -20,4 +20,4 @@ var/datum/antagonist/morph/morphs = null to_chat(player.current, SPAN_DANGER("You can eat people and items by clicking on them, but only if they're dead.")) /datum/antagonist/morph/is_obvious_antag(datum/mind/player) - return TRUE \ No newline at end of file + return TRUE diff --git a/code/game/antagonist/station/thrall.dm b/code/game/antagonist/station/thrall.dm index 8865d925ed2..ed2a3ea7e7b 100644 --- a/code/game/antagonist/station/thrall.dm +++ b/code/game/antagonist/station/thrall.dm @@ -42,4 +42,4 @@ var/datum/antagonist/thrall/thralls = null var/datum/vampire/vampire = player.antag_datums[MODE_VAMPIRE] vampire.lose_master(player.current) player.antag_datums -= MODE_VAMPIRE - return ..() \ No newline at end of file + return ..() diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index 908e221b13a..674bc5456f5 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -7,11 +7,15 @@ var/anchored = 0 var/movable_flags - var/icon_scale_x = 1 // Used to scale icons up or down horizonally in update_transform(). - var/icon_scale_y = 1 // Used to scale icons up or down vertically in update_transform(). - var/icon_rotation = 0 // Used to rotate icons in update_transform() + ///Used to scale icons up or down horizonally in update_transform(). + var/icon_scale_x = 1 + + ///Used to scale icons up or down vertically in update_transform(). + var/icon_scale_y = 1 + + ///Used to rotate icons in update_transform() + var/icon_rotation = 0 - // var/elevation = 2 - not used anywhere var/move_speed = 10 var/l_move_time = 1 var/throwing = 0 @@ -21,9 +25,14 @@ var/throw_range = 7 var/moved_recently = 0 var/atom/movable/pulledby = null - var/item_state = null // Base name of the image used for when the item is in someone's hand. Suffixes are added to this. Doubles as legacy overlay_state. - var/overlay_state = null // Base name of the image used for when the item is worn. Suffixes are added to this. Important for icon flipping as _flip is added at the end of the value. - //Also used on holdable mobs for the same info related to their held version + + ///Base name of the image used for when the item is in someone's hand. Suffixes are added to this. Doubles as legacy overlay_state. + var/item_state = null + + ///Base name of the image used for when the item is worn. Suffixes are added to this. Important for icon flipping as _flip is added at the end of the value. + var/overlay_state = null + + ///Also used on holdable mobs for the same info related to their held version var/does_spin = TRUE // Does the atom spin when thrown (of course it does :P) var/can_hold_mob = FALSE @@ -184,9 +193,9 @@ minor_dist = dist_x while(src && target && src.throwing && istype(src.loc, /turf) \ - && ((abs(target.x - src.x)+abs(target.y - src.y) > 0 && dist_travelled < range) \ - || (a && a.has_gravity == 0) \ - || istype(src.loc, /turf/space))) + && ((abs(target.x - src.x)+abs(target.y - src.y) > 0 && dist_travelled < range) \ + || (a && a.has_gravity == 0) \ + || istype(src.loc, /turf/space))) // only stop when we've gone the whole distance (or max throw range) and are on a non-space tile, or hit something, or hit the end of the map, or someone picks it up var/atom/step if(error >= 0) diff --git a/code/game/dna/dna2_domutcheck.dm b/code/game/dna/dna2_domutcheck.dm index dea07c4ea4b..24090206ad4 100644 --- a/code/game/dna/dna2_domutcheck.dm +++ b/code/game/dna/dna2_domutcheck.dm @@ -10,7 +10,7 @@ var/mob/living/carbon/human/H = M if(H.species && H.species.flags & NO_SCAN) return - + for(var/datum/dna/gene/gene in dna_genes) if(!M || !M.dna) return diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index b0df9f01530..d28f2e5d41a 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -295,17 +295,17 @@ if(!..()) ui_interact(user) - /** - * The ui_interact proc is used to open and update Nano UIs - * If ui_interact is not used then the UI will not update correctly - * ui_interact is currently defined for /atom/movable (which is inherited by /obj and /mob) - * - * @param user /mob The mob who is interacting with this ui - * @param ui_key string A string key to use for this ui. Allows for multiple unique uis on one obj/mob (defaut value "main") - * @param ui /datum/nanoui This parameter is passed by the nanoui process() proc when updating an open ui - * - * @return nothing - */ +/** + * The ui_interact proc is used to open and update Nano UIs + * If ui_interact is not used then the UI will not update correctly + * ui_interact is currently defined for /atom/movable (which is inherited by /obj and /mob) + * + * @param user /mob The mob who is interacting with this ui + * @param ui_key string A string key to use for this ui. Allows for multiple unique uis on one obj/mob (defaut value "main") + * @param ui /datum/nanoui This parameter is passed by the nanoui process() proc when updating an open ui + * + * @return nothing + */ /obj/machinery/computer/scan_consolenew/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1) if (!connected) return diff --git a/code/game/dna/genes/monkey.dm b/code/game/dna/genes/monkey.dm index 4d94b72371e..4594140235d 100644 --- a/code/game/dna/genes/monkey.dm +++ b/code/game/dna/genes/monkey.dm @@ -30,4 +30,4 @@ if(!H.dna.real_name) var/randomname = H.species.get_random_name() H.real_name = randomname - H.dna.real_name = randomname \ No newline at end of file + H.dna.real_name = randomname diff --git a/code/game/gamemodes/changeling/helpers/sting_click.dm b/code/game/gamemodes/changeling/helpers/sting_click.dm index 3701e7f3cd9..ce37fbf04a0 100644 --- a/code/game/gamemodes/changeling/helpers/sting_click.dm +++ b/code/game/gamemodes/changeling/helpers/sting_click.dm @@ -19,4 +19,4 @@ CHECK_STING(src, A) . = ..() -#undef CHECK_STING \ No newline at end of file +#undef CHECK_STING diff --git a/code/game/gamemodes/changeling/implements/hivemind.dm b/code/game/gamemodes/changeling/implements/hivemind.dm index 44198743cd4..bbf9c1920ea 100644 --- a/code/game/gamemodes/changeling/implements/hivemind.dm +++ b/code/game/gamemodes/changeling/implements/hivemind.dm @@ -69,4 +69,4 @@ var/datum/changeling/changeling = changeling_mob.mind.antag_datums[MODE_CHANGELING] changeling.hivemind_members -= src - qdel(src) \ No newline at end of file + qdel(src) diff --git a/code/game/gamemodes/cult/runes/armor.dm b/code/game/gamemodes/cult/runes/armor.dm index cf47fe95007..4cec4f8c42a 100644 --- a/code/game/gamemodes/cult/runes/armor.dm +++ b/code/game/gamemodes/cult/runes/armor.dm @@ -5,7 +5,7 @@ /datum/rune/armor/do_rune_action(mob/living/user, atom/movable/A) user.say("N'ath reth sh'yro eth d'raggathnor!") user.visible_message(SPAN_DANGER("A flash of red light appears around [user], as a set of armor envelops their body!"), - SPAN_CULT("A refreshing feeling envelops you; the armor of the Dark One is once again protecting you.")) + SPAN_CULT("A refreshing feeling envelops you; the armor of the Dark One is once again protecting you.")) if(istype(user, /mob/living/simple_animal/construct)) var/mob/living/simple_animal/construct/C = user @@ -16,10 +16,10 @@ construct_class = alert(C, "Please choose which type of construct you wish to become.", "Construct Selection", "Juggernaut", "Wraith", "Artificer") var/list/static/construct_types = list("Juggernaut" = /mob/living/simple_animal/construct/armored, - "Wraith" = /mob/living/simple_animal/construct/wraith, - "Artificer" = /mob/living/simple_animal/construct/builder, - "Harvester" = /mob/living/simple_animal/construct/harvester) - + "Wraith" = /mob/living/simple_animal/construct/wraith, + "Artificer" = /mob/living/simple_animal/construct/builder, + "Harvester" = /mob/living/simple_animal/construct/harvester) + var/construct_path = construct_types[construct_class] var/mob/living/simple_animal/construct/Z = new construct_path(get_turf(C)) Z.health = Z.health * (C.health / C.maxHealth) @@ -29,7 +29,7 @@ C.death() construct_msg(Z, construct_class) Z.cancel_camera() - + else if(ishuman(user)) user.equip_to_slot_or_del(new /obj/item/clothing/head/culthood/alt(user), slot_head) user.equip_to_slot_or_del(new /obj/item/clothing/suit/cultrobes/alt(user), slot_wear_suit) diff --git a/code/game/gamemodes/cult/runes/blood_boil.dm b/code/game/gamemodes/cult/runes/blood_boil.dm index b7028a378bf..f4552b6cf21 100644 --- a/code/game/gamemodes/cult/runes/blood_boil.dm +++ b/code/game/gamemodes/cult/runes/blood_boil.dm @@ -28,4 +28,4 @@ qdel(A) return TRUE else - return fizzle(user, A) \ No newline at end of file + return fizzle(user, A) diff --git a/code/game/gamemodes/cult/runes/convert.dm b/code/game/gamemodes/cult/runes/convert.dm index 55d37a9c825..f3acdd2f8e1 100644 --- a/code/game/gamemodes/cult/runes/convert.dm +++ b/code/game/gamemodes/cult/runes/convert.dm @@ -103,4 +103,4 @@ var/mob/living/simple_animal/shade/shade = locate() in stone announce_ghost_joinleave(shade) shade.ghostize(FALSE) - target.dust() \ No newline at end of file + target.dust() diff --git a/code/game/gamemodes/cult/runes/create_talisman.dm b/code/game/gamemodes/cult/runes/create_talisman.dm index 60831749c32..010de8b3079 100644 --- a/code/game/gamemodes/cult/runes/create_talisman.dm +++ b/code/game/gamemodes/cult/runes/create_talisman.dm @@ -37,4 +37,4 @@ qdel(new_talisman) playsound(A, 'sound/magic/enter_blood.ogg', 50) else - return fizzle(user, A) \ No newline at end of file + return fizzle(user, A) diff --git a/code/game/gamemodes/cult/runes/deafen_others.dm b/code/game/gamemodes/cult/runes/deafen_others.dm index e1089113904..a7bb2ab0058 100644 --- a/code/game/gamemodes/cult/runes/deafen_others.dm +++ b/code/game/gamemodes/cult/runes/deafen_others.dm @@ -27,4 +27,4 @@ admin_attacker_log_many_victims(user, affected, "Used a deafen rune.", "Was victim of a deafen rune.", "used a deafen rune on") qdel(A) else - return fizzle(user, A) \ No newline at end of file + return fizzle(user, A) diff --git a/code/game/gamemodes/cult/runes/free_cultist.dm b/code/game/gamemodes/cult/runes/free_cultist.dm index 928e384ae4f..a88ec16d90d 100644 --- a/code/game/gamemodes/cult/runes/free_cultist.dm +++ b/code/game/gamemodes/cult/runes/free_cultist.dm @@ -20,7 +20,7 @@ return fizzle(user, A) if(cultist == user) //just to be sure. return - + var/cultist_free = TRUE if(cultist.buckled_to) cultist_free = FALSE @@ -52,7 +52,7 @@ cultist_free = FALSE door.unlock() door.open() - + if(!cultist_free) to_chat(cultist, SPAN_CULT("Your fellow cultists have freed you!")) @@ -62,4 +62,4 @@ else C.say("Khari'd! Gual'te nikka!") qdel(A) - return fizzle(user, A) \ No newline at end of file + return fizzle(user, A) diff --git a/code/game/gamemodes/cult/runes/hide_runes.dm b/code/game/gamemodes/cult/runes/hide_runes.dm index ffe9d7b2d4a..4646aad9d6b 100644 --- a/code/game/gamemodes/cult/runes/hide_runes.dm +++ b/code/game/gamemodes/cult/runes/hide_runes.dm @@ -15,4 +15,4 @@ for(var/mob/V in viewers(get_turf(A))) to_chat(V, SPAN_WARNING("\The [A] dissipates into a bloody cloud, veiling the surrounding runes.")) qdel(A) - return TRUE \ No newline at end of file + return TRUE diff --git a/code/game/gamemodes/cult/runes/sacrifice.dm b/code/game/gamemodes/cult/runes/sacrifice.dm index 065676fbcab..479a3cfdbd1 100644 --- a/code/game/gamemodes/cult/runes/sacrifice.dm +++ b/code/game/gamemodes/cult/runes/sacrifice.dm @@ -23,7 +23,7 @@ else if(istype(I,/obj/item/aicard)) for(var/mob/living/silicon/ai/AI in I) victims += AI - + for(var/mob/living/carbon/C in orange(1, A)) if(iscultist(C) && !C.stat) cultists_in_range += C @@ -52,7 +52,7 @@ do_sacrifice(cultists_in_range, H, H.stat, 80, worthy) else fizzle(user) - + if(output) for(var/mob/C in cultists_in_range) to_chat(C, output) @@ -85,4 +85,4 @@ if(isrobot(victim)) victim.dust() // To prevent the MMI from remaining else - victim.gib() \ No newline at end of file + victim.gib() diff --git a/code/game/gamemodes/cult/runes/summon_narsie.dm b/code/game/gamemodes/cult/runes/summon_narsie.dm index 159295022a8..56ee4afafd6 100644 --- a/code/game/gamemodes/cult/runes/summon_narsie.dm +++ b/code/game/gamemodes/cult/runes/summon_narsie.dm @@ -32,4 +32,4 @@ if(!iscultist(M)) continue to_chat(M, SPAN_WARNING("Not enough cultists are around to summon the Great Dark One!")) - return fizzle(user, A) \ No newline at end of file + return fizzle(user, A) diff --git a/code/game/gamemodes/cult/runes/summon_soulstone.dm b/code/game/gamemodes/cult/runes/summon_soulstone.dm index bfffa844cf6..f2a8ae1d0b4 100644 --- a/code/game/gamemodes/cult/runes/summon_soulstone.dm +++ b/code/game/gamemodes/cult/runes/summon_soulstone.dm @@ -6,4 +6,4 @@ user.say("N'ath reth sh'yro eth d'raggathnor!") new /obj/item/device/soulstone(get_turf(A)) qdel(A) - return TRUE \ No newline at end of file + return TRUE diff --git a/code/game/gamemodes/cult/runes/summon_tome.dm b/code/game/gamemodes/cult/runes/summon_tome.dm index 6f452fbe176..a102cb57ac3 100644 --- a/code/game/gamemodes/cult/runes/summon_tome.dm +++ b/code/game/gamemodes/cult/runes/summon_tome.dm @@ -9,4 +9,4 @@ "You hear a pop and smell ozone.") new /obj/item/book/tome(get_turf(A)) qdel(A) - return TRUE \ No newline at end of file + return TRUE diff --git a/code/game/gamemodes/cult/runes/wall.dm b/code/game/gamemodes/cult/runes/wall.dm index eed4b5fc326..8e0516535a3 100644 --- a/code/game/gamemodes/cult/runes/wall.dm +++ b/code/game/gamemodes/cult/runes/wall.dm @@ -13,4 +13,4 @@ parent.filters = filter(type="blur", size = 5) else to_chat(user, SPAN_CULT("Your blood flows into the rune, and you feel as the rune releases its grasp on space.")) - parent.filters = filter(type="drop_shadow", x = 1, y = 1, size = 4, color = "#FF0000") + parent.filters = filter(type="drop_shadow", x = 1, y = 1, size = 4, color = "#FF0000") diff --git a/code/game/gamemodes/cult/structures/structure.dm b/code/game/gamemodes/cult/structures/structure.dm index 1622a609b48..7ab6e060271 100644 --- a/code/game/gamemodes/cult/structures/structure.dm +++ b/code/game/gamemodes/cult/structures/structure.dm @@ -5,4 +5,4 @@ appearance_flags = NO_CLIENT_COLOR /obj/structure/cult/cultify() - return \ No newline at end of file + return diff --git a/code/game/gamemodes/endgame/endgame.dm b/code/game/gamemodes/endgame/endgame.dm index 62c04d6db51..c7e08ba7c3b 100644 --- a/code/game/gamemodes/endgame/endgame.dm +++ b/code/game/gamemodes/endgame/endgame.dm @@ -2,27 +2,27 @@ * ENDGAME STUFF **********************/ - // Universal State - // Handles stuff like space icon_state, constants, etc. - // Essentially a policy manager. Once shit hits the fan, this changes its policies. - // Called by master controller. +// Universal State +// Handles stuff like space icon_state, constants, etc. +// Essentially a policy manager. Once shit hits the fan, this changes its policies. +// Called by master controller. - // Default shit. +// Default shit. /datum/universal_state // Just for reference, for now. // Might eventually add an observatory job. - var/name = "Normal" - var/desc = "Nothing seems awry." + var/name = "Normal" + var/desc = "Nothing seems awry." - // Sets world.turf, replaces all turfs of type /turf/space. - var/space_type = /turf/space + // Sets world.turf, replaces all turfs of type /turf/space. + var/space_type = /turf/space - // Replaces all turfs of type /turf/space/transit/bluespace - var/transit_space_type = /turf/space/transit/bluespace + // Replaces all turfs of type /turf/space/transit/bluespace + var/transit_space_type = /turf/space/transit/bluespace - // Chance of a floor or wall getting damaged [0-100] - // Simulates stuff getting broken due to molecular bonds decaying. - var/decay_rate = 0 + // Chance of a floor or wall getting damaged [0-100] + // Simulates stuff getting broken due to molecular bonds decaying. + var/decay_rate = 0 // Actually decay the turf. /datum/universal_state/proc/DecayTurf(var/turf/T) @@ -50,15 +50,15 @@ // Apply changes when exiting state /datum/universal_state/proc/OnExit() - // Does nothing by default + return // Does nothing by default // Apply changes when entering state /datum/universal_state/proc/OnEnter() - // Does nothing by default + return // Does nothing by default // Apply changes to a new turf. /datum/universal_state/proc/OnTurfChange(var/turf/NT) - return + return /datum/universal_state/proc/OverlayAndAmbientSet() return diff --git a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm index 50508b88842..ac5910a1de0 100644 --- a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm +++ b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm @@ -2,10 +2,10 @@ var/global/universe_has_ended = 0 /datum/universal_state/supermatter_cascade - name = "Supermatter Cascade" - desc = "Unknown harmonance affecting universal substructure, converting nearby matter to supermatter." + name = "Supermatter Cascade" + desc = "Unknown harmonance affecting universal substructure, converting nearby matter to supermatter." - decay_rate = 5 // 5% chance of a turf decaying on lighting update/airflow (there's no actual tick for turfs) + decay_rate = 5 // 5% chance of a turf decaying on lighting update/airflow (there's no actual tick for turfs) /datum/universal_state/supermatter_cascade/OnShuttleCall(var/mob/user) if(user) diff --git a/code/game/gamemodes/events/holidays/easter.dm b/code/game/gamemodes/events/holidays/easter.dm index e8fc031e9a3..584dd63af32 100644 --- a/code/game/gamemodes/events/holidays/easter.dm +++ b/code/game/gamemodes/events/holidays/easter.dm @@ -1,18 +1,18 @@ /proc/Easter_Game_Start() - Random_Egg() + Random_Egg() //Random egg /proc/Random_Egg() - to_world("No personality is installed.
+No personality is installed.
Request personality
diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm
index 4021953549e..771fffae89c 100644
--- a/code/game/objects/items/devices/radio/intercom.dm
+++ b/code/game/objects/items/devices/radio/intercom.dm
@@ -420,7 +420,7 @@ pixel_x = 8;
return INITIALIZE_HINT_NORMAL
/obj/item/device/radio/intercom/locked
- var/locked_frequency
+ var/locked_frequency
/obj/item/device/radio/intercom/locked/north
PRESET_NORTH
diff --git a/code/game/objects/items/devices/slide_projector.dm b/code/game/objects/items/devices/slide_projector.dm
index 826074d9c58..83cbd925416 100644
--- a/code/game/objects/items/devices/slide_projector.dm
+++ b/code/game/objects/items/devices/slide_projector.dm
@@ -71,7 +71,7 @@
moved_event.unregister(src, src, PROC_REF(check_projections))
set_light(0)
update_icon()
-
+
/obj/item/storage/slide_projector/proc/project_at(turf/target)
stop_projecting()
if(!current_slide)
@@ -96,7 +96,7 @@
data += "Disable Projector"
else
data += "Projector Inactive"
-
+
var/table = list("
diff --git a/code/modules/assembly/helpers.dm b/code/modules/assembly/helpers.dm index 5fb9437efe8..152d34fbcba 100644 --- a/code/modules/assembly/helpers.dm +++ b/code/modules/assembly/helpers.dm @@ -22,4 +22,4 @@ // If true is an object that can hold an assemblyholder object /obj/proc/IsAssemblyHolder() - return FALSE \ No newline at end of file + return FALSE diff --git a/code/modules/assembly/igniter.dm b/code/modules/assembly/igniter.dm index 06c992dd393..da5be3b67ba 100644 --- a/code/modules/assembly/igniter.dm +++ b/code/modules/assembly/igniter.dm @@ -35,4 +35,4 @@ add_fingerprint(user) /obj/item/device/assembly/igniter/isFlameSource() - return TRUE \ No newline at end of file + return TRUE diff --git a/code/modules/asset_cache/transports/webroot_transport.dm b/code/modules/asset_cache/transports/webroot_transport.dm index 521682a6b6f..9ee8768efd4 100644 --- a/code/modules/asset_cache/transports/webroot_transport.dm +++ b/code/modules/asset_cache/transports/webroot_transport.dm @@ -1,4 +1,4 @@ -/// CDN Webroot asset transport. +/// CDN Webroot asset transport. /datum/asset_transport/webroot name = "CDN Webroot asset transport" @@ -59,7 +59,7 @@ if (!islist(asset_list)) asset_list = list(asset_list) for (var/asset_name in asset_list) - var/datum/asset_cache_item/ACI = asset_list[asset_name] + var/datum/asset_cache_item/ACI = asset_list[asset_name] if (!istype(ACI)) ACI = SSassets.cache[asset_name] if (!ACI) @@ -69,7 +69,7 @@ legacy_assets[asset_name] = ACI if (length(legacy_assets)) . = ..(client, legacy_assets) - + /// webroot slow asset sending - does nothing. /datum/asset_transport/webroot/send_assets_slow(client/client, list/files, filerate) diff --git a/code/modules/atmospherics/components/omni_devices/_omni_extras.dm b/code/modules/atmospherics/components/omni_devices/_omni_extras.dm index 2673372155c..47e14aae4ee 100644 --- a/code/modules/atmospherics/components/omni_devices/_omni_extras.dm +++ b/code/modules/atmospherics/components/omni_devices/_omni_extras.dm @@ -15,7 +15,7 @@ //-------------------------------------------- // Omni port datum // -// Used by omni devices to manage connections +// Used by omni devices to manage connections // to other atmospheric objects. //-------------------------------------------- /datum/omni_port @@ -71,10 +71,10 @@ string = "East" if(WEST) string = "West" - + if(!capitalize && string) string = lowertext(string) - + return string //returns a direction flag based on the string passed to it @@ -108,4 +108,4 @@ if(ATM_H2) return GAS_HYDROGEN else - return null \ No newline at end of file + return null diff --git a/code/modules/atmospherics/components/unary/outlet_injector.dm b/code/modules/atmospherics/components/unary/outlet_injector.dm index 7d0daeb1fd5..2097d1009c6 100644 --- a/code/modules/atmospherics/components/unary/outlet_injector.dm +++ b/code/modules/atmospherics/components/unary/outlet_injector.dm @@ -120,7 +120,7 @@ "power" = use_power, "volume_rate" = volume_rate, "sigtype" = "status" - ) + ) radio_connection.post_signal(src, signal) diff --git a/code/modules/atmospherics/components/unary/vent_pump.dm b/code/modules/atmospherics/components/unary/vent_pump.dm index dc6e7f72908..b0ad609d47f 100644 --- a/code/modules/atmospherics/components/unary/vent_pump.dm +++ b/code/modules/atmospherics/components/unary/vent_pump.dm @@ -387,8 +387,8 @@ update_icon() playsound(src, 'sound/items/welder_pry.ogg', 50, 1) user.visible_message(SPAN_NOTICE("\The [user] [welded ? "welds \the [src] shut" : "unwelds \the [src]"]."), \ - SPAN_NOTICE("You [welded ? "weld \the [src] shut" : "unweld \the [src]"]."), \ - "You hear welding.") + SPAN_NOTICE("You [welded ? "weld \the [src] shut" : "unweld \the [src]"]."), \ + "You hear welding.") else to_chat(user, SPAN_NOTICE("You fail to complete the welding.")) else diff --git a/code/modules/atmospherics/components/unary/vent_scrubber.dm b/code/modules/atmospherics/components/unary/vent_scrubber.dm index a779d19ab54..ebf441630f2 100644 --- a/code/modules/atmospherics/components/unary/vent_scrubber.dm +++ b/code/modules/atmospherics/components/unary/vent_scrubber.dm @@ -342,8 +342,8 @@ welded = !welded update_icon() user.visible_message(SPAN_NOTICE("\The [user] [welded ? "welds \the [src] shut" : "unwelds \the [src]"]."), \ - SPAN_NOTICE("You [welded ? "weld \the [src] shut" : "unweld \the [src]"]."), \ - "You hear welding.") + SPAN_NOTICE("You [welded ? "weld \the [src] shut" : "unweld \the [src]"]."), \ + "You hear welding.") return TRUE if(istype(W, /obj/item/melee/arm_blade)) diff --git a/code/modules/atmospherics/datum_pipe_network.dm b/code/modules/atmospherics/datum_pipe_network.dm index 8a76c5f801a..28e751e17c9 100644 --- a/code/modules/atmospherics/datum_pipe_network.dm +++ b/code/modules/atmospherics/datum_pipe_network.dm @@ -69,7 +69,7 @@ for(var/datum/pipeline/line_member in line_members) gases += line_member.air - + for(var/datum/gas_mixture/air in gases) volume += air.volume diff --git a/code/modules/atmospherics/datum_pipeline.dm b/code/modules/atmospherics/datum_pipeline.dm index d570b94d761..8375d58f3d2 100644 --- a/code/modules/atmospherics/datum_pipeline.dm +++ b/code/modules/atmospherics/datum_pipeline.dm @@ -206,16 +206,16 @@ /datum/pipeline/proc/radiate_heat_to_space(surface, thermal_conductivity) var/gas_density = air.total_moles/air.volume thermal_conductivity *= min(gas_density / ( RADIATOR_OPTIMUM_PRESSURE/(R_IDEAL_GAS_EQUATION*GAS_CRITICAL_TEMPERATURE) ), 1) //mult by density ratio - + // We only get heat from the star on the exposed surface area. // If the HE pipes gain more energy from AVERAGE_SOLAR_RADIATION than they can radiate, then they have a net heat increase. var/heat_gain = AVERAGE_SOLAR_RADIATION * (RADIATOR_EXPOSED_SURFACE_AREA_RATIO * surface) * thermal_conductivity - + // Previously, the temperature would enter equilibrium at 26C or 294K. // Only would happen if both sides (all 2 square meters of surface area) were exposed to sunlight. We now assume it aligned edge on. // It currently should stabilise at 129.6K or -143.6C heat_gain -= surface * STEFAN_BOLTZMANN_CONSTANT * thermal_conductivity * (air.temperature - COSMIC_RADIATION_TEMPERATURE) ** 4 - + air.add_thermal_energy(heat_gain) if(network) network.update = 1 diff --git a/code/modules/atmospherics/pipes.dm b/code/modules/atmospherics/pipes.dm index 1e4a99d71b9..b7e6fe0a6d7 100644 --- a/code/modules/atmospherics/pipes.dm +++ b/code/modules/atmospherics/pipes.dm @@ -1388,7 +1388,7 @@ air_temporary.temperature = T20C air_temporary.adjust_multi(GAS_OXYGEN, (start_pressure*O2STANDARD)*(air_temporary.volume)/(R_IDEAL_GAS_EQUATION*air_temporary.temperature), \ - GAS_NITROGEN,(start_pressure*N2STANDARD)*(air_temporary.volume)/(R_IDEAL_GAS_EQUATION*air_temporary.temperature)) + GAS_NITROGEN,(start_pressure*N2STANDARD)*(air_temporary.volume)/(R_IDEAL_GAS_EQUATION*air_temporary.temperature)) . = ..() diff --git a/code/modules/awaymissions/pamphlet.dm b/code/modules/awaymissions/pamphlet.dm index ec5e940669f..55264ee921d 100644 --- a/code/modules/awaymissions/pamphlet.dm +++ b/code/modules/awaymissions/pamphlet.dm @@ -35,4 +35,4 @@ //we don't want the silly text overlay! /obj/item/paper/pamphlet/update_icon() - return \ No newline at end of file + return diff --git a/code/modules/awaymissions/zlevel.dm b/code/modules/awaymissions/zlevel.dm index 1631d5e989f..698bab06aef 100644 --- a/code/modules/awaymissions/zlevel.dm +++ b/code/modules/awaymissions/zlevel.dm @@ -21,11 +21,11 @@ // var/value = null if (pos) - // No, don't do lowertext here, that breaks paths on linux + // No, don't do lowertext here, that breaks paths on linux name = copytext(t, 1, pos) // value = copytext(t, pos + 1) else - // No, don't do lowertext here, that breaks paths on linux + // No, don't do lowertext here, that breaks paths on linux name = t if (!name) diff --git a/code/modules/background/accent/accent.dm b/code/modules/background/accent/accent.dm index f76a806aa2c..777558e7132 100644 --- a/code/modules/background/accent/accent.dm +++ b/code/modules/background/accent/accent.dm @@ -2,4 +2,4 @@ var/name var/description = "Unga Dunga." var/tag_icon //those icons should go in accent_tags.dmi - var/text_tag //Each accent should have a text tag. These are used in cases such as 4K monitors where tag icons cannot be displayed properly. \ No newline at end of file + var/text_tag //Each accent should have a text tag. These are used in cases such as 4K monitors where tag icons cannot be displayed properly. diff --git a/code/modules/background/accent/diona.dm b/code/modules/background/accent/diona.dm index 150f8247149..d8b352e246b 100644 --- a/code/modules/background/accent/diona.dm +++ b/code/modules/background/accent/diona.dm @@ -34,20 +34,20 @@ description = "Found exclusively in Dionae hailing from the Unathi-Dominated world of Moghes, Sandsong is a distinct variation of Rootsong notable for having its tempo much more drawn out, with tones of higher pitches especially having a much more exaggerated sound. Dionae speaking with the Sandsong accent will typically hold certain speech patterns held by Unathi such as hissing out their S’s and difficulties pronouncing the letter X. " tag_icon = "dionae_sandsong" text_tag = "SDS" - + /datum/accent/wastesong name = ACCENT_WASTESONG description = "Originating from the irradiated Moghes Wastes, Wastesong is an accent spoken by Dionae who found themselves being bathed in the Wasteland’s radiation, making them healthy and much more resilient than some of their other planet-bound brethren, but also giving them a slightly distinct accent notable for having a lower-pitched voice compared to regular Rootsong but also a much faster tempo. Much like Sandsong, Dionae with the Wasteland accent will typically carry similar speech patterns to Unathi such as hissing out their S’s." tag_icon = "dionae_wastesong" text_tag = "WES" - + //Skrell influenced Accents /datum/accent/wavesong name = ACCENT_WAVESONG description = "A variant of Rootsong originating from Diona born on Skrellian worlds, Wavesong is considered the general accent for Dionae hailing from the Nralakk Federation. While it shares many similarities with Rootsong, Wavesong sets itself apart by having a lower pitch and more drawn-out tempo in comparison. While not considered mandatory, many Dionae living in the Federation will adopt the accent due to it being generally more favored by the Federation, often granting those with the accent a higher social credit score." tag_icon = "dionae_wavesong" text_tag = "WAS" - + /datum/accent/sunkensong name = ACCENT_SUNKENSONG description = "Sunkensong is a variant of Voidsong that is common for space-borne Dionae hailing from regions surrounding the Tri-Qyu Nebula. Known for it's lighter pitch and tone, along with it's consistent, even pacing for words, the accent is prevalent amongst Nralakk Federation Diona that originate from wild, voidbound gestalts. Dionae with Sunkensong may attempt to mimic Skrell accents in an attempt to replicate the more popular Starsong, with mixed results." diff --git a/code/modules/background/accent/skrell.dm b/code/modules/background/accent/skrell.dm index 33b79810449..37556962352 100644 --- a/code/modules/background/accent/skrell.dm +++ b/code/modules/background/accent/skrell.dm @@ -89,6 +89,6 @@ /datum/accent/skrell/EUM name = ACCENT_SKRELLEUM description = "The Nral'Daaq accent draws from the accents of migrating Skrell from the Federation as well as elements of rootsong from the local Dionae population, creating a sing-song accent with \ - melodic highs and lows. The accent has been compared to the Aweijiin accent, but it does not have the same reputation as it is not used by idols." + melodic highs and lows. The accent has been compared to the Aweijiin accent, but it does not have the same reputation as it is not used by idols." tag_icon = "skrell_nraldaaq" text_tag = "NDQ" diff --git a/code/modules/background/accent/vaurca.dm b/code/modules/background/accent/vaurca.dm index 80efefb843e..5bbc83609e1 100644 --- a/code/modules/background/accent/vaurca.dm +++ b/code/modules/background/accent/vaurca.dm @@ -1,39 +1,39 @@ /datum/accent/zora - name = ACCENT_ZORA - description = "Zo'rane is the modern day dialect of the Zo'ra Hive, composed of cheap Biesellite voice modulators that manage to sway most voices \ - into a more gender neutral tone, while retaining a distinct alien dialect. To other Vaurcae, this accent is reminiscent of the authority the Zo'ra held - \ - regal and noble. Their vocal augments stereotypically have difficulty, typically when producing sounds related to the letter 's', instead substituting with \ - a harsh buzzing in the throat." - tag_icon = "zora" - text_tag = "ZOR" + name = ACCENT_ZORA + description = "Zo'rane is the modern day dialect of the Zo'ra Hive, composed of cheap Biesellite voice modulators that manage to sway most voices \ + into a more gender neutral tone, while retaining a distinct alien dialect. To other Vaurcae, this accent is reminiscent of the authority the Zo'ra held - \ + regal and noble. Their vocal augments stereotypically have difficulty, typically when producing sounds related to the letter 's', instead substituting with \ + a harsh buzzing in the throat." + tag_icon = "zora" + text_tag = "ZOR" /datum/accent/klax - name = ACCENT_KLAX - description = "K'laxane is the modern day dialect of the K'lax Hive. Primitive modulators manage to capture a similarity to the \ - peasantry of the Izweski Hegemony on Moghes - however, they do not fully replicate it, retaining a more drawn out and dreamy tone. To other Vaurcae, this is \ - a more subservient manner of speaking, akin to how Bound tend to draw out their thoughts - a common trait instilled in most vassal hives as a brand. Their \ - vocal augments stereotypically have difficulty, typically when producing sounds related to the letter 's', instead substituting with a harsh buzzing in the \ - throat - the K'lax experience less of this - no Unathi would be content listening to a Vaurca buzz incessantly when trying to hiss a sentence in the \ - Hegemonic tongue." - tag_icon = "klax" - text_tag = "KLA" + name = ACCENT_KLAX + description = "K'laxane is the modern day dialect of the K'lax Hive. Primitive modulators manage to capture a similarity to the \ + peasantry of the Izweski Hegemony on Moghes - however, they do not fully replicate it, retaining a more drawn out and dreamy tone. To other Vaurcae, this is \ + a more subservient manner of speaking, akin to how Bound tend to draw out their thoughts - a common trait instilled in most vassal hives as a brand. Their \ + vocal augments stereotypically have difficulty, typically when producing sounds related to the letter 's', instead substituting with a harsh buzzing in the \ + throat - the K'lax experience less of this - no Unathi would be content listening to a Vaurca buzz incessantly when trying to hiss a sentence in the \ + Hegemonic tongue." + tag_icon = "klax" + text_tag = "KLA" /datum/accent/cthur - name = ACCENT_CTHUR - description = "C'thuric is the modern day dialect of the C'thur Hive, a sly and sneering take on the unyielding Nral'Malic. Other Vaurcae would associate this tone with the \ + name = ACCENT_CTHUR + description = "C'thuric is the modern day dialect of the C'thur Hive, a sly and sneering take on the unyielding Nral'Malic. Other Vaurcae would associate this tone with the \ C'thur's infamous past deeds. Modulators are unfortunately still cheap, leading to a monotone method of speaking. \ Voices are also warped into being clear and concise, many C'thur adopting a blunt and to-the-point style when speaking casually. \ Their vocal augments stereotypically have difficulty, typically when producing sounds related to the letter 's', instead \ - substituting with a harsh buzzing in the throat." - tag_icon = "cthur" - text_tag = "CTH" + substituting with a harsh buzzing in the throat." + tag_icon = "cthur" + text_tag = "CTH" /datum/accent/liidra - name = ACCENT_LIIDRA - description = "The Lii'dra speech, as understood by those that have heard the Hivemind and live to tell, is characterized by a monotonous voice that sounds \ - even more robotic than the modulators used by other Hives. It is believed to be a modified technology reverse engineered from stolen \ - Zo'rane modulators. While, with its flaws, the Zo'ra accent might sound quirky to some, it is often said that this is to add more personality to each \ - individual. Since the Lii'dra do not think of themselves as individuals, these variations were deemed useless. The Connected will often speak of themselves in plural, while the Disconnected \ - are prone to using the first person when referring to others." - tag_icon = "liidra" - text_tag = "LII" + name = ACCENT_LIIDRA + description = "The Lii'dra speech, as understood by those that have heard the Hivemind and live to tell, is characterized by a monotonous voice that sounds \ + even more robotic than the modulators used by other Hives. It is believed to be a modified technology reverse engineered from stolen \ + Zo'rane modulators. While, with its flaws, the Zo'ra accent might sound quirky to some, it is often said that this is to add more personality to each \ + individual. Since the Lii'dra do not think of themselves as individuals, these variations were deemed useless. The Connected will often speak of themselves in plural, while the Disconnected \ + are prone to using the first person when referring to others." + tag_icon = "liidra" + text_tag = "LII" diff --git a/code/modules/background/citizenship/dionae.dm b/code/modules/background/citizenship/dionae.dm index 87cdb84c125..272eef4bf88 100644 --- a/code/modules/background/citizenship/dionae.dm +++ b/code/modules/background/citizenship/dionae.dm @@ -1,15 +1,15 @@ /datum/citizenship/eum name = CITIZENSHIP_EUM description = "Initially discovered by Skrell probes in 2342, Epsilon Ursea Minoris, or generally referred \ - to as EUM, is a habitable world home to multiple Dionae civilizations and clusters. While not the homeworld \ - of the species, EUM is the largest-known world to have been colonized exclusively by Dionae without contact \ - or help from outside species, being home to the Dionae for thousands of years prior to discovery." - + to as EUM, is a habitable world home to multiple Dionae civilizations and clusters. While not the homeworld \ + of the species, EUM is the largest-known world to have been colonized exclusively by Dionae without contact \ + or help from outside species, being home to the Dionae for thousands of years prior to discovery." + job_species_blacklist = list( "Consular Officer" = list( SPECIES_HUMAN, SPECIES_HUMAN_OFFWORLD, - SPECIES_SKRELL, + SPECIES_SKRELL, SPECIES_IPC, SPECIES_IPC_BISHOP, SPECIES_IPC_G1, diff --git a/code/modules/background/citizenship/human.dm b/code/modules/background/citizenship/human.dm index 9ee682fba9a..cdac7b46e54 100644 --- a/code/modules/background/citizenship/human.dm +++ b/code/modules/background/citizenship/human.dm @@ -79,7 +79,7 @@ name = CITIZENSHIP_SOL description = "Once considered a juggernaut in terms of cultural and political influence, the Alliance of Sovereign Solarian Nations (ASSN), commonly referred to as the Sol Alliance, has greatly declined in the wake of the phoron crisis and the Solarian collapse of 2462. \ Once the spur's largest interstellar power, in recent times the Sol Alliance has retreated to its wealthy so-called Jewel Worlds and inner colonies, with its reach barely extending to a few select middle colonies. \ - However, it still controls the largest human military in the entire spur, and their cooperation with Einstein Engines and the Nralakk Federation has contributed to it gradually regaining some of its pre-collapse influence and power. \ + However, it still controls the largest human military in the entire spur, and their cooperation with Einstein Engines and the Nralakk Federation has contributed to it gradually regaining some of its pre-collapse influence and power. \ Presently ruled by a military junta that is gradually giving way to civilian control, the Alliance is also generally xenophobic, and most non-humans find themselves discriminated against in Solarian territory. \ Though much of its former possessions are now occupied by warlord statelets and other interstellar powers, the Alliance still maintains a revanchist outlook, refusing to relinquish its claims to its lost territories." consular_outfit = /datum/outfit/job/representative/consular/sol diff --git a/code/modules/background/origins/origins/diona/eum.dm b/code/modules/background/origins/origins/diona/eum.dm index 7da4eaad395..81cacc883e6 100644 --- a/code/modules/background/origins/origins/diona/eum.dm +++ b/code/modules/background/origins/origins/diona/eum.dm @@ -19,28 +19,28 @@ possible_accents = list(ACCENT_ROOTSONG, ACCENT_VOIDSONG, ACCENT_ANCIENTSONG, ACCENT_IRONSONG, ACCENT_WAVESONG, ACCENT_SUNKENSONG, ACCENT_STARSONG) possible_citizenships = list(CITIZENSHIP_NRALAKK, CITIZENSHIP_EUM, CITIZENSHIP_BIESEL, CITIZENSHIP_COALITION) possible_religions = list(RELIGION_ETERNAL, RELIGION_MADA, RELIGION_GLEANERS, RELIGION_OTHER, RELIGION_NONE) - + /singleton/origin_item/origin/united name = "United" desc = "Widely considered the capital of the CT-EUM, the city-state of United is the newest independent nation, formed alongside the formation of the CT-EUM, to act as a neutral meeting place for the Council of Delegates, and to represent the central governing body, as well as acting as a mediator between the two other city-states should a conflict arise. United is the second most-visited city on EUM after Nral'Daaq, and has influence from both off-world and the other city-states in its structure, and operation." possible_accents = list(ACCENT_ROOTSONG, ACCENT_VOIDSONG, ACCENT_ANCIENTSONG, ACCENT_IRONSONG, ACCENT_WAVESONG, ACCENT_SUNKENSONG, ACCENT_STARSONG) possible_citizenships = list(CITIZENSHIP_NRALAKK, CITIZENSHIP_EUM, CITIZENSHIP_BIESEL, CITIZENSHIP_COALITION) possible_religions = list(RELIGION_ETERNAL, RELIGION_MADA, RELIGION_GLEANERS, RELIGION_OTHER, RELIGION_NONE) - + /singleton/origin_item/origin/gleaners name = "Gleaners Of Bliss" desc = "The Gleaners of Bliss is a large, religious city-state that is known for its imperialistic attitude. The Gleaners emphasize harmony and equality, but are not above making sure that it aligns to their specific ideals, however. The Gleaners are among the oldest of the city-states and were one of the first to put forth the idea of the CT-EUM on first contact. Before, and during, its inception, the Gleaners have expanded their influence on numerous other city-states, both in and out of the CT-EUM. Now, the Gleaners are the most outspoken proponents of expanding the CT-EUM offworld. Their emphasis on equality and harmony however, are criticized because of this, and the Gleaners are often seen as a very hypocritical city-state." possible_accents = list(ACCENT_ROOTSONG, ACCENT_VOIDSONG, ACCENT_ANCIENTSONG, ACCENT_IRONSONG) possible_citizenships = list(CITIZENSHIP_NRALAKK, CITIZENSHIP_EUM, CITIZENSHIP_BIESEL, CITIZENSHIP_COALITION) possible_religions = list(RELIGION_ETERNAL, RELIGION_GLEANERS, RELIGION_OTHER, RELIGION_NONE) - + /singleton/origin_item/origin/nraldaaq name = "Nral'Daaq" desc = "Playing host to the vast majority of the planet's non-dionae population, Nral'Daaq is a city-state under the CT-EUM that is known for being the planet's hub of off-world trading, as well as for its quite diverse majority-skrell population, with both Pro-Federation and Anti-Federation Skrell calling the city home. Due to the city's border with the sea, Nral'Daaq is also a quite popular trading spot for the Ekane, with the vast majority of their goods ending up in the city to be later resold off-world. " possible_accents = list(ACCENT_ROOTSONG, ACCENT_VOIDSONG, ACCENT_ANCIENTSONG, ACCENT_IRONSONG, ACCENT_WAVESONG, ACCENT_SUNKENSONG, ACCENT_STARSONG) possible_citizenships = list(CITIZENSHIP_NRALAKK, CITIZENSHIP_EUM, CITIZENSHIP_BIESEL, CITIZENSHIP_COALITION) possible_religions = list(RELIGION_ETERNAL, RELIGION_MADA, RELIGION_GLEANERS, RELIGION_QEBLAK, RELIGION_WEISHII, RELIGION_SUURKA, RELIGION_KIRGUL, RELIGION_OTHER, RELIGION_NONE) - + /singleton/origin_item/origin/mada name = "Mada" desc = "Primarily located in the great forests of the Mede Region on EUM, The Mada are a semi-independent nation under the CT-EUM known for their isolationist beliefs and their religious worship of nature, with a focus on plant life in particular. Rather than all be situated in one singular city, the Mada are fairly spread out in the region, inhabiting a myriad of small settlements. The Capital, Elder Mada, is the largest settlement under the Mada, but not by a large margin." @@ -54,7 +54,7 @@ possible_accents = list(ACCENT_ROOTSONG, ACCENT_VOIDSONG, ACCENT_ANCIENTSONG, ACCENT_IRONSONG) possible_citizenships = list(CITIZENSHIP_NRALAKK, CITIZENSHIP_EUM, CITIZENSHIP_BIESEL, CITIZENSHIP_COALITION) possible_religions = list(RELIGION_ETERNAL, RELIGION_OTHER, RELIGION_NONE) - + /singleton/origin_item/origin/eumstation name = "Celestial Station" desc = "The first and largest space-bound outpost established by the CT-EUM government, Celestial Station is notable as a major trading hub for EUM's nations, often being used as a large marketplace for potential sellers and buyers from both EUM and elsewhere to do business, as well as a hub for mining operations undertaken on nearby asteroids. While nominally under the direct control of the CT-EUM federal government, Celestial Station has as of late begun to make efforts to gain independence away from the Federal government's direct control as a colony, instead attempting to become a semi-independent city-state under the CT-EUM government much like the other city-states under it. " @@ -62,7 +62,7 @@ possible_accents = list(ACCENT_ROOTSONG, ACCENT_VOIDSONG, ACCENT_ANCIENTSONG, ACCENT_IRONSONG, ACCENT_WAVESONG, ACCENT_SUNKENSONG, ACCENT_STARSONG) possible_citizenships = list(CITIZENSHIP_NRALAKK, CITIZENSHIP_EUM, CITIZENSHIP_BIESEL, CITIZENSHIP_COALITION) possible_religions = list(RELIGION_ETERNAL, RELIGION_MADA, RELIGION_GLEANERS, RELIGION_OTHER, RELIGION_NONE) - + /singleton/origin_item/origin/eumminor name = "Minor City State" desc = "From a minor city-state under the CT-EUM. " diff --git a/code/modules/background/origins/origins/diona/narrows.dm b/code/modules/background/origins/origins/diona/narrows.dm index 2527ef76aa8..a33440ad3b0 100644 --- a/code/modules/background/origins/origins/diona/narrows.dm +++ b/code/modules/background/origins/origins/diona/narrows.dm @@ -6,7 +6,7 @@ /singleton/origin_item/origin/b_block, /singleton/origin_item/origin/c_block ) - + /singleton/origin_item/origin/a_block name = "A-block" desc = "The original Dionae of the ship, Dionae in A-Block serves as the third-highest rank in the ship's hierarchy and is considered to be some of the most efficient and experienced workers the ship has to offer. While they tend not to look down upon the other blocks for their lack of experience, they do consider themselves to be better workers. As a result of this A-block has actually begun to see a lack of personnel due to so many signing on to leave the ship and work elsewhere within Hephestatus as a way to show off the efficiency of Dionae from the Narrows." diff --git a/code/modules/background/origins/origins/human/biesel.dm b/code/modules/background/origins/origins/human/biesel.dm index e1fa5409215..33102cb9551 100644 --- a/code/modules/background/origins/origins/human/biesel.dm +++ b/code/modules/background/origins/origins/human/biesel.dm @@ -1,38 +1,38 @@ /singleton/origin_item/culture/biesellite - name = "Biesellite" - desc = "Relatively new compared to other cultures across the Orion Spur, the Biesellite culture was forged from the fire borne by its independence. Since its inception, it has continued to evolve, especially with the recent expansion of the Republic of Biesel into the Solarian Alliance's Outer Ring after its abandonment during the collapse. Despite its recent acquisition, the Corporate Reconstruction Zone as it is now known has begun adjusting and blending their own cultures into the Biesellite way of life, those not bending the knee and aligning are often bastions of insurgency and unrest." - possible_origins = list( - /singleton/origin_item/origin/biesel, - /singleton/origin_item/origin/new_gibson, - /singleton/origin_item/origin/reade, - /singleton/origin_item/origin/valkyrie - ) + name = "Biesellite" + desc = "Relatively new compared to other cultures across the Orion Spur, the Biesellite culture was forged from the fire borne by its independence. Since its inception, it has continued to evolve, especially with the recent expansion of the Republic of Biesel into the Solarian Alliance's Outer Ring after its abandonment during the collapse. Despite its recent acquisition, the Corporate Reconstruction Zone as it is now known has begun adjusting and blending their own cultures into the Biesellite way of life, those not bending the knee and aligning are often bastions of insurgency and unrest." + possible_origins = list( + /singleton/origin_item/origin/biesel, + /singleton/origin_item/origin/new_gibson, + /singleton/origin_item/origin/reade, + /singleton/origin_item/origin/valkyrie + ) /singleton/origin_item/origin/biesel - name = "Biesel" - desc = "One of the first colonies outside of the Sol System, Biesel has since flourished into an economic powerhouse within the greater Orion Spur. There exists no singular culture, but instead, a loose melting pot of multiculturalism exists where the only definable trait of Biesellite culture is that it doesn't have any. Most of Tau Ceti's inhabitants reside within Mendell City, a large metropolis that stretches across the plains of Biesel, and has various districts each with its own culture." - possible_accents = list(ACCENT_CETI) - possible_citizenships = list(CITIZENSHIP_BIESEL) - possible_religions = RELIGIONS_BIESEL + name = "Biesel" + desc = "One of the first colonies outside of the Sol System, Biesel has since flourished into an economic powerhouse within the greater Orion Spur. There exists no singular culture, but instead, a loose melting pot of multiculturalism exists where the only definable trait of Biesellite culture is that it doesn't have any. Most of Tau Ceti's inhabitants reside within Mendell City, a large metropolis that stretches across the plains of Biesel, and has various districts each with its own culture." + possible_accents = list(ACCENT_CETI) + possible_citizenships = list(CITIZENSHIP_BIESEL) + possible_religions = RELIGIONS_BIESEL /singleton/origin_item/origin/new_gibson - name = "New Gibson" - desc = "New Gibson has suffered many tragedies throughout its history, leading to a hardened, communal society. While the multiculturalism that exists within the Republic of Biesel has also affected New Gibsonites, they are still far more reliant on their colonial roots compared to their Biesellite counterparts." - important_information = "Due to the insular nature of the Undirstads of New Gibson, characters hailing from them must have names and appearances consistent with the Nordic regions of Earth, the original colonists of the Undirstads. Only those born in the Undirstads may take the Undirstad accent. This is enforceable by server moderation and admins." - possible_accents = list(ACCENT_GIBSON_OVAN, ACCENT_GIBSON_UNDIR) - possible_citizenships = list(CITIZENSHIP_BIESEL) - possible_religions = RELIGIONS_BIESEL + name = "New Gibson" + desc = "New Gibson has suffered many tragedies throughout its history, leading to a hardened, communal society. While the multiculturalism that exists within the Republic of Biesel has also affected New Gibsonites, they are still far more reliant on their colonial roots compared to their Biesellite counterparts." + important_information = "Due to the insular nature of the Undirstads of New Gibson, characters hailing from them must have names and appearances consistent with the Nordic regions of Earth, the original colonists of the Undirstads. Only those born in the Undirstads may take the Undirstad accent. This is enforceable by server moderation and admins." + possible_accents = list(ACCENT_GIBSON_OVAN, ACCENT_GIBSON_UNDIR) + possible_citizenships = list(CITIZENSHIP_BIESEL) + possible_religions = RELIGIONS_BIESEL /singleton/origin_item/origin/reade - name = "Reade" - desc = "Outposts dot the dozens of moons found in orbit of Reade, many dedicated to mineral extraction and refinement. However, within the upper atmosphere of the gas giant the engineering feat that is the Anemostrovilos exists. The gigantic floating metropolis has its industry focused on the extraction of important gases such as Hydrogen and Helium-3 required to fuel the Orion Spur's warpdrives and thrusters. Nearly anyone can be found in the outposts either in the upper atmosphere of Reade or across its many moons." - possible_accents = list(ACCENT_CETI, ACCENT_GIBSON_OVAN, ACCENT_GIBSON_UNDIR, ACCENT_VALKYRIE) - possible_citizenships = list(CITIZENSHIP_BIESEL) - possible_religions = RELIGIONS_BIESEL + name = "Reade" + desc = "Outposts dot the dozens of moons found in orbit of Reade, many dedicated to mineral extraction and refinement. However, within the upper atmosphere of the gas giant the engineering feat that is the Anemostrovilos exists. The gigantic floating metropolis has its industry focused on the extraction of important gases such as Hydrogen and Helium-3 required to fuel the Orion Spur's warpdrives and thrusters. Nearly anyone can be found in the outposts either in the upper atmosphere of Reade or across its many moons." + possible_accents = list(ACCENT_CETI, ACCENT_GIBSON_OVAN, ACCENT_GIBSON_UNDIR, ACCENT_VALKYRIE) + possible_citizenships = list(CITIZENSHIP_BIESEL) + possible_religions = RELIGIONS_BIESEL /singleton/origin_item/origin/valkyrie - name = "Valkyrie" - desc = "Lighting up the night sky of Biesel, Valkyrie is an incredibly important port of trade within Tau Ceti, and hosts a significant amount of megacorporate facilities within its orbit, on its surface, as well as deep within the canyons and crevices. Valkyrie has not been spared by the multiculturalism that has dispersed across Tau Ceti, and actively encourages it through their incredibly relaxed immigration policies that allow for a remarkable amount of diversity to exist." - possible_accents = list(ACCENT_VALKYRIE) - possible_citizenships = list(CITIZENSHIP_BIESEL) - possible_religions = RELIGIONS_BIESEL + name = "Valkyrie" + desc = "Lighting up the night sky of Biesel, Valkyrie is an incredibly important port of trade within Tau Ceti, and hosts a significant amount of megacorporate facilities within its orbit, on its surface, as well as deep within the canyons and crevices. Valkyrie has not been spared by the multiculturalism that has dispersed across Tau Ceti, and actively encourages it through their incredibly relaxed immigration policies that allow for a remarkable amount of diversity to exist." + possible_accents = list(ACCENT_VALKYRIE) + possible_citizenships = list(CITIZENSHIP_BIESEL) + possible_religions = RELIGIONS_BIESEL diff --git a/code/modules/background/origins/origins/human/coalition.dm b/code/modules/background/origins/origins/human/coalition.dm index a271d6aa2dd..7d224d56809 100644 --- a/code/modules/background/origins/origins/human/coalition.dm +++ b/code/modules/background/origins/origins/human/coalition.dm @@ -65,7 +65,7 @@ origin_traits_descriptions = list("have a small resistance to radiation", "are more sensitive to bright lights") /singleton/origin_item/origin/gadpathur/on_apply(var/mob/living/carbon/human/H) - H.AddComponent(/datum/component/armor, list(rad = ARMOR_RAD_MINOR)) + H.AddComponent(/datum/component/armor, list(rad = ARMOR_RAD_MINOR)) /singleton/origin_item/origin/gadpathur_exile name = "Gadpathurian Exile" @@ -77,7 +77,7 @@ origin_traits_descriptions = list("have a small resistance to radiation", "are more sensitive to bright lights") /singleton/origin_item/origin/gadpathur_exile/on_apply(var/mob/living/carbon/human/H) - H.AddComponent(/datum/component/armor, list(rad = ARMOR_RAD_MINOR)) + H.AddComponent(/datum/component/armor, list(rad = ARMOR_RAD_MINOR)) /singleton/origin_item/origin/assunzione name = "Republic of Assunzione" diff --git a/code/modules/background/religion/diona.dm b/code/modules/background/religion/diona.dm index 856f8ee05db..a5f8f3b7163 100644 --- a/code/modules/background/religion/diona.dm +++ b/code/modules/background/religion/diona.dm @@ -1,49 +1,49 @@ /datum/religion/eternal - name = RELIGION_ETERNAL - description = "Followers of The Eternal believe that a primordial entity exists in Light, Energy and Essence - which the Dionae are the embodiment of. \ - They believe that the Dionae were made to ensure that all things born from the stars return to stars, eventually. Before they may return the Dionae must devour as much knowledge \ - and biomass as they can, growing exponentially until they reach the mythical Titan form, becoming a star once more. Transcended into a star, the Dionae will emit light and energy \ - until they die, at which point their essence will spread across the void to birth new Dionae. It is in this way that the eternal cycle is achieved. Scholars of the Eternal link \ - this to the very real potential outcome of Titan form Dionae which theoretically could grow to such mass as to collapse into a star, thus giving off light and energy before \ - eventually going supernova and expelling matter or essence across the cosmos." - book_name = "book of the eternal" - book_sprite = "eternal" - + name = RELIGION_ETERNAL + description = "Followers of The Eternal believe that a primordial entity exists in Light, Energy and Essence - which the Dionae are the embodiment of. \ + They believe that the Dionae were made to ensure that all things born from the stars return to stars, eventually. Before they may return the Dionae must devour as much knowledge \ + and biomass as they can, growing exponentially until they reach the mythical Titan form, becoming a star once more. Transcended into a star, the Dionae will emit light and energy \ + until they die, at which point their essence will spread across the void to birth new Dionae. It is in this way that the eternal cycle is achieved. Scholars of the Eternal link \ + this to the very real potential outcome of Titan form Dionae which theoretically could grow to such mass as to collapse into a star, thus giving off light and energy before \ + eventually going supernova and expelling matter or essence across the cosmos." + book_name = "book of the eternal" + book_sprite = "eternal" + /datum/religion/ksshr - name = RELIGION_KSSHR - description = "The Ksshr, also known as the Enlightened, is a religious sect on Xrim known for their complete rejection of The First Consciousness, instead of being an agnostic \ - sect that centers around working together to create a better future, as well as the advancement of technology and understanding how the universe works. The Ksshr faith is the \ - primary religion of Xrim, with most of its inhabitants considering themselves a part of the religion. The Nralakk Federation does encourage practicing the faith amongst the \ - population so long as they continue to reject The First Consciousness, as well as stay away from the teachings of the Shrkh." - book_name = "ksshr codex" - book_sprite = "holybook" - + name = RELIGION_KSSHR + description = "The Ksshr, also known as the Enlightened, is a religious sect on Xrim known for their complete rejection of The First Consciousness, instead of being an agnostic \ + sect that centers around working together to create a better future, as well as the advancement of technology and understanding how the universe works. The Ksshr faith is the \ + primary religion of Xrim, with most of its inhabitants considering themselves a part of the religion. The Nralakk Federation does encourage practicing the faith amongst the \ + population so long as they continue to reject The First Consciousness, as well as stay away from the teachings of the Shrkh." + book_name = "ksshr codex" + book_sprite = "holybook" + /datum/religion/shrkh - name = RELIGION_SHRKH - description = "The Shrkh, or 'Scorned' as they call themselves, continue to follow the age-old tradition of worshipping Glorsh-Omega. They believe that Glorsh-Omega planted them \ - on the planet intentionally, granting them a blissful haven via the use of technology. Once the prominent and only religion on the planet, Shrkh-ism was quickly displaced when \ - Skrell explorers crashlanded and their memories, thoughts, emotions, everything was consumed, and doubt was first seeded in the minds of all Dionae on Xrim. The premise \ - behind the religion itself is simple; revere, help sustain and maintain synthetic life. As synthetic life brought dionae into this haven, so too shall it be preserved. In the \ - minds of the Shrkh worshippers, the Skrell that brought Ksshr to the planet were misguided. To the Shrkh, the X'Lu'oa was something that never happened, a myth made up by \ - the Federation to indoctrinate its population into its anti-synthetic and authoritarian beliefs. \ - \ - Note that due to their beliefs, those that are openly members of the faith are barred from command, machinist, and chaplain positions. They are also completely barred from \ - working for Zeng-Hu due to the megacorporations ties with the Federation." - book_name = "shrkh codex" - book_sprite = "holybook" + name = RELIGION_SHRKH + description = "The Shrkh, or 'Scorned' as they call themselves, continue to follow the age-old tradition of worshipping Glorsh-Omega. They believe that Glorsh-Omega planted them \ + on the planet intentionally, granting them a blissful haven via the use of technology. Once the prominent and only religion on the planet, Shrkh-ism was quickly displaced when \ + Skrell explorers crashlanded and their memories, thoughts, emotions, everything was consumed, and doubt was first seeded in the minds of all Dionae on Xrim. The premise \ + behind the religion itself is simple; revere, help sustain and maintain synthetic life. As synthetic life brought dionae into this haven, so too shall it be preserved. In the \ + minds of the Shrkh worshippers, the Skrell that brought Ksshr to the planet were misguided. To the Shrkh, the X'Lu'oa was something that never happened, a myth made up by \ + the Federation to indoctrinate its population into its anti-synthetic and authoritarian beliefs. \ + \ + Note that due to their beliefs, those that are openly members of the faith are barred from command, machinist, and chaplain positions. They are also completely barred from \ + working for Zeng-Hu due to the megacorporations ties with the Federation." + book_name = "shrkh codex" + book_sprite = "holybook" /datum/religion/mada - name = RELIGION_MADA - description = "The Mada religion, translated as Maraka, is practiced by the majority of Mada citizens and has two core tenants central to its practitioners; Spirits are \ - created through the continued absorption of sunlight, the more sunlight absorbed the stronger these spirits become, chlorophyll and anything capable of producing it are \ - considered blessed, as they have an increased potency when it comes to creating powerful spirits, doubly so if nurtured and protected. This means that most forms of plant \ - life are considered holy to the Maraka religion, harming or killing a developing or still-living plant is considered taboo, but once naturally dead there's no issue with \ - consuming it or utilizing it for any other purpose." - book_name = "maraka writ" - book_sprite = "holybook" - + name = RELIGION_MADA + description = "The Mada religion, translated as Maraka, is practiced by the majority of Mada citizens and has two core tenants central to its practitioners; Spirits are \ + created through the continued absorption of sunlight, the more sunlight absorbed the stronger these spirits become, chlorophyll and anything capable of producing it are \ + considered blessed, as they have an increased potency when it comes to creating powerful spirits, doubly so if nurtured and protected. This means that most forms of plant \ + life are considered holy to the Maraka religion, harming or killing a developing or still-living plant is considered taboo, but once naturally dead there's no issue with \ + consuming it or utilizing it for any other purpose." + book_name = "maraka writ" + book_sprite = "holybook" + /datum/religion/gleaners - name = RELIGION_GLEANERS - description = "A faith focusing on the worship of the sun and stars originating from EUM." - book_name = "lights accord writ" - book_sprite = "holybook" + name = RELIGION_GLEANERS + description = "A faith focusing on the worship of the sun and stars originating from EUM." + book_name = "lights accord writ" + book_sprite = "holybook" diff --git a/code/modules/background/religion/unathi.dm b/code/modules/background/religion/unathi.dm index 4603833211e..25bcb343d6d 100644 --- a/code/modules/background/religion/unathi.dm +++ b/code/modules/background/religion/unathi.dm @@ -28,10 +28,10 @@ /datum/religion/autakh name = RELIGION_AUTAKH description = "Coming from radicalized and sidelined views of former warriors, the Aut'akh are a religious commune of cybernetically-augmented Unathi. They live in the relative safety \ - of their communes scattered across various towns, planets, and systems, though have yet to truly attain their perfect leaderless society, as their own supposedly-defeated prejudice \ - still runs in quiet circles within communes. Meanwhile, society often rebukes and ridicules these fanatical trans-speciests. Their lives are gently guided by the shamans or \"paradigms,\" \ - which sometimes act as the biomechanical engineers of these groups. The Aut'akh believe that spirits inhabit all things, much like the Th'akh religion. However, they also believe the flesh's \ - weakness hampers the soul, thus evil spirits can manipulate people's minds and souls to commit evil acts. These malicious spirits are given power within a being when the person succumbs to greed, \ - anger, or other emotional vices. Aut'akh preach that the Contact War was the result of sinta being so misled by evil spirits that they brought the world to ruin, and all power, whether a government, \ - religion, or corporation, is inherently corrupt due to the influence of evil spirits." - book_name = "Rituals and Regiments of the Ancient Mador" \ No newline at end of file + of their communes scattered across various towns, planets, and systems, though have yet to truly attain their perfect leaderless society, as their own supposedly-defeated prejudice \ + still runs in quiet circles within communes. Meanwhile, society often rebukes and ridicules these fanatical trans-speciests. Their lives are gently guided by the shamans or \"paradigms,\" \ + which sometimes act as the biomechanical engineers of these groups. The Aut'akh believe that spirits inhabit all things, much like the Th'akh religion. However, they also believe the flesh's \ + weakness hampers the soul, thus evil spirits can manipulate people's minds and souls to commit evil acts. These malicious spirits are given power within a being when the person succumbs to greed, \ + anger, or other emotional vices. Aut'akh preach that the Contact War was the result of sinta being so misled by evil spirits that they brought the world to ruin, and all power, whether a government, \ + religion, or corporation, is inherently corrupt due to the influence of evil spirits." + book_name = "Rituals and Regiments of the Ancient Mador" diff --git a/code/modules/cargo/bounties/hydroponics.dm b/code/modules/cargo/bounties/hydroponics.dm index 4ddb9b0a4ce..c78d58d81bc 100644 --- a/code/modules/cargo/bounties/hydroponics.dm +++ b/code/modules/cargo/bounties/hydroponics.dm @@ -80,9 +80,9 @@ description = "%BOSSNAME is in need of a bundle of fresh fruit. Send your best!" required_count = 12 random_count = 3 - produce_picks = list(/datum/seed/tomato, - /datum/seed/berry, - /datum/seed/apple, + produce_picks = list(/datum/seed/tomato, + /datum/seed/berry, + /datum/seed/apple, /datum/seed/grapes, /datum/seed/banana, /datum/seed/watermelon, @@ -105,4 +105,4 @@ description = "%BOSSNAME is in need of some fresh tobacco leaves. Send your best!" required_count = 10 random_count = 2 - produce_picks = list(/datum/seed/tobacco) \ No newline at end of file + produce_picks = list(/datum/seed/tobacco) diff --git a/code/modules/cargo/bounties/special.dm b/code/modules/cargo/bounties/special.dm index a80faf5d820..c9126c16bf1 100644 --- a/code/modules/cargo/bounties/special.dm +++ b/code/modules/cargo/bounties/special.dm @@ -34,7 +34,7 @@ /datum/bounty/item/phoron_sheet/New() ..() required_count = round(required_count, 10) - //Overwrite the normal price randomization because the random_count is so high. There would be absolutely nuts price fluctuation. + //Overwrite the normal price randomization because the random_count is so high. There would be absolutely nuts price fluctuation. reward = round(rand(reward_low, reward_high), 100) /datum/bounty/item/phoron_sheet/ship(var/obj/item/stack/material/phoron/O) diff --git a/code/modules/cargo/exports.dm b/code/modules/cargo/exports.dm index b62b8fef62a..26893c0fb5a 100644 --- a/code/modules/cargo/exports.dm +++ b/code/modules/cargo/exports.dm @@ -1,30 +1,30 @@ /* How it works: - The shuttle arrives at CentCom dock and calls sell(), which recursively loops through all the shuttle contents that are unanchored. - The loop only checks contents of storage types, see supply.dm shuttle code. +The shuttle arrives at CentCom dock and calls sell(), which recursively loops through all the shuttle contents that are unanchored. +The loop only checks contents of storage types, see supply.dm shuttle code. - Each object in the loop is checked for applies_to() of various export datums, except the invalid ones. - Objects on shutlle floor are checked only against shuttle_floor = TRUE exports. +Each object in the loop is checked for applies_to() of various export datums, except the invalid ones. +Objects on shutlle floor are checked only against shuttle_floor = TRUE exports. - If applies_to() returns TRUE, sell_object() is called on object and checks against exports are stopped for this object. - sell_object() must add object amount and cost to export's total_cost and total_amount. +If applies_to() returns TRUE, sell_object() is called on object and checks against exports are stopped for this object. +sell_object() must add object amount and cost to export's total_cost and total_amount. - When all the shuttle objects are looped, export cycle is over. The shuttle calls total_printout() for each valid export. - If total_printout() returns something, the export datum's total_cost is added to cargo credits, then export_end() is called to reset total_cost and total_amount. +When all the shuttle objects are looped, export cycle is over. The shuttle calls total_printout() for each valid export. +If total_printout() returns something, the export datum's total_cost is added to cargo credits, then export_end() is called to reset total_cost and total_amount. */ /* The rule in figuring out item export cost: - Export cost of goods in the shipping crate must be always equal or lower than: - packcage cost - crate cost - manifest cost - Crate cost is 500cr for a regular plasteel crate and 100cr for a large wooden one. Manifest cost is always 200cr. - This is to avoid easy cargo points dupes. +Export cost of goods in the shipping crate must be always equal or lower than: + packcage cost - crate cost - manifest cost +Crate cost is 500cr for a regular plasteel crate and 100cr for a large wooden one. Manifest cost is always 200cr. +This is to avoid easy cargo points dupes. Credit dupes that require a lot of manual work shouldn't be removed, unless they yield too much profit for too little work. - For example, if some player buys metal and glass sheets and uses them to make and sell reinforced glass: +For example, if some player buys metal and glass sheets and uses them to make and sell reinforced glass: - 100 glass + 50 metal -> 100 reinforced glass - (1500cr -> 1600cr) +100 glass + 50 metal -> 100 reinforced glass +(1500cr -> 1600cr) - then the player gets the profit from selling his own wasted time. +then the player gets the profit from selling his own wasted time. */ /datum/controller/subsystem/cargo/proc/export_item_and_contents(atom/movable/AM, contraband, emagged, dry_run=FALSE) var/sold_str = "" diff --git a/code/modules/client/preference_setup/origin/origin.dm b/code/modules/client/preference_setup/origin/origin.dm index ccc8e72364c..1b578195abc 100644 --- a/code/modules/client/preference_setup/origin/origin.dm +++ b/code/modules/client/preference_setup/origin/origin.dm @@ -119,7 +119,7 @@ dat += "Religion: [pref.religion] " dat += "Accent: [pref.accent] " . = dat.Join() - + /datum/category_item/player_setup_item/origin/OnTopic(href, href_list, user) var/datum/species/S = all_species[pref.species] if(href_list["open_culture_menu"]) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 741dc02103d..2e6b071be9d 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -806,12 +806,12 @@ update_clothing_icon() /obj/item/clothing/mask/proc/adjust_sprites() - if(hanging) - icon_state = "[icon_state]down" - item_state = "[item_state]down" - else - icon_state = initial(icon_state) - item_state = initial(item_state) + if(hanging) + icon_state = "[icon_state]down" + item_state = "[item_state]down" + else + icon_state = initial(icon_state) + item_state = initial(item_state) /obj/item/clothing/mask/proc/lower_message(mob/user) user.visible_message("[user] pulls \the [src] down to hang around their neck.", SPAN_NOTICE("You pull \the [src] down to hang around your neck.")) diff --git a/code/modules/clothing/ears/earmuffs.dm b/code/modules/clothing/ears/earmuffs.dm index def33119a1c..38962fae4e6 100644 --- a/code/modules/clothing/ears/earmuffs.dm +++ b/code/modules/clothing/ears/earmuffs.dm @@ -70,7 +70,7 @@ build_from_parts = TRUE worn_overlay = "over" slot_flags = SLOT_EARS | SLOT_TWOEARS - slot = ACCESSORY_SLOT_HEAD + slot = ACCESSORY_SLOT_HEAD /obj/item/clothing/accessory/ear_warmers/attack_hand(mob/user) if(ishuman(user)) @@ -83,9 +83,9 @@ qdel(OE) ..() - + /obj/item/clothing/accessory/ear_warmers/update_clothing_icon() if (ismob(src.loc)) var/mob/M = src.loc M.update_inv_l_ear() - M.update_inv_r_ear() \ No newline at end of file + M.update_inv_r_ear() diff --git a/code/modules/clothing/ears/xeno/bulwark.dm b/code/modules/clothing/ears/xeno/bulwark.dm index f8361dde7f1..3339196d75f 100644 --- a/code/modules/clothing/ears/xeno/bulwark.dm +++ b/code/modules/clothing/ears/xeno/bulwark.dm @@ -1,24 +1,24 @@ /obj/item/clothing/ears/bulwark - name = "bulwark horn wear" - desc = "Some stuff worn by Bulwarks to adorn their horns." - icon = 'icons/obj/vaurca_items.dmi' - sprite_sheets = list( + name = "bulwark horn wear" + desc = "Some stuff worn by Bulwarks to adorn their horns." + icon = 'icons/obj/vaurca_items.dmi' + sprite_sheets = list( BODYTYPE_VAURCA_BULWARK = 'icons/mob/species/bulwark/horns.dmi' ) - w_class = ITEMSIZE_TINY - slot_flags = SLOT_HEAD | SLOT_EARS - species_restricted = list(BODYTYPE_VAURCA_BULWARK) + w_class = ITEMSIZE_TINY + slot_flags = SLOT_HEAD | SLOT_EARS + species_restricted = list(BODYTYPE_VAURCA_BULWARK) /obj/item/clothing/ears/bulwark/get_ear_examine_text(var/mob/user, var/ear_text = "left") - return "around [user.get_pronoun("his")] horns" + return "around [user.get_pronoun("his")] horns" /obj/item/clothing/ears/bulwark/get_head_examine_text(var/mob/user) - return "around [user.get_pronoun("his")] horns" + return "around [user.get_pronoun("his")] horns" /obj/item/clothing/ears/bulwark/rings - name = "bulwark horn rings" - desc = "Rings worn by Bulwarks to decorate their horns." - icon_state = "horn_rings" - item_state = "horn_rings" - drop_sound = 'sound/items/drop/accessory.ogg' - pickup_sound = 'sound/items/pickup/accessory.ogg' \ No newline at end of file + name = "bulwark horn rings" + desc = "Rings worn by Bulwarks to decorate their horns." + icon_state = "horn_rings" + item_state = "horn_rings" + drop_sound = 'sound/items/drop/accessory.ogg' + pickup_sound = 'sound/items/pickup/accessory.ogg' diff --git a/code/modules/clothing/factions/dominia.dm b/code/modules/clothing/factions/dominia.dm index fa16e995402..7cdeed8033b 100644 --- a/code/modules/clothing/factions/dominia.dm +++ b/code/modules/clothing/factions/dominia.dm @@ -602,7 +602,7 @@ name = "dominian consular officer's dress cap" desc = "A quite fashionable cap issued to the members of His Majesty's Diplomatic Service." desc_extended = "His Majesty's Diplomatic Service - as with much of the Empire tends to be dominated by the great houses, though the Service also employs many \ - commoners - as long as they can pass the rigorous examinations required to become a full member of the Diplomatic Service." + commoners - as long as they can pass the rigorous examinations required to become a full member of the Diplomatic Service." icon = 'icons/clothing/head/dominia_consular_cap.dmi' icon_state = "dominia_consular_cap" item_state = "dominia_consular_cap" diff --git a/code/modules/clothing/factions/nralakk.dm b/code/modules/clothing/factions/nralakk.dm index ea9003852ee..5e1ed1c0cba 100644 --- a/code/modules/clothing/factions/nralakk.dm +++ b/code/modules/clothing/factions/nralakk.dm @@ -1,80 +1,80 @@ /obj/item/clothing/accessory/dressshirt/skrell - desc = "A formal wetshirt in Skrell style." - icon = 'icons/clothing/under/shirts/skrell_casual.dmi' + desc = "A formal wetshirt in Skrell style." + icon = 'icons/clothing/under/shirts/skrell_casual.dmi' /obj/item/clothing/accessory/dressshirt/skrell/ocean - name = "ocean formal wetshirt" - desc = "This wetshirt is meant to resemble the waves of Qerrbalak's homeworld. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "ocean_dressshirt" - item_state = "ocean_dressshirt" + name = "ocean formal wetshirt" + desc = "This wetshirt is meant to resemble the waves of Qerrbalak's homeworld. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "ocean_dressshirt" + item_state = "ocean_dressshirt" /obj/item/clothing/accessory/dressshirt/skrell/maelstrom - name = "maelstrom formal wetshirt" - desc = "This ferocious wetshirt resembles that of a maelstrom; a common occurance on Skrell planets. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "maelstrom_dressshirt" - item_state = "maelstrom_dressshirt" + name = "maelstrom formal wetshirt" + desc = "This ferocious wetshirt resembles that of a maelstrom; a common occurance on Skrell planets. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "maelstrom_dressshirt" + item_state = "maelstrom_dressshirt" /obj/item/clothing/accessory/dressshirt/skrell/reef - name = "reef formal wetshirt" - desc = "This slightly tacky wetshirt resembles the coral reefs found throughout Nralakk space. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "reef_dressshirt" - item_state = "reef_dressshirt" + name = "reef formal wetshirt" + desc = "This slightly tacky wetshirt resembles the coral reefs found throughout Nralakk space. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "reef_dressshirt" + item_state = "reef_dressshirt" /obj/item/clothing/accessory/tshirt/skrell - icon = 'icons/clothing/under/shirts/skrell_casual.dmi' - desc = "A wetshirt in Skrell style." - contained_sprite = TRUE + icon = 'icons/clothing/under/shirts/skrell_casual.dmi' + desc = "A wetshirt in Skrell style." + contained_sprite = TRUE /obj/item/clothing/accessory/tshirt/skrell/ocean - name = "ocean wetshirt" - desc = "This wetshirt is meant to resemble the waves of Qerrbalak's homeworld. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "ocean_tee" - item_state = "ocean_tee" + name = "ocean wetshirt" + desc = "This wetshirt is meant to resemble the waves of Qerrbalak's homeworld. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "ocean_tee" + item_state = "ocean_tee" /obj/item/clothing/accessory/tshirt/skrell/maelstrom - name = "maelstrom wetshirt" - desc = "This ferocious wetshirt resembles that of a maelstrom; a common occurance on Skrell planets. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "maelstrom_tee" - item_state = "maelstrom_tee" + name = "maelstrom wetshirt" + desc = "This ferocious wetshirt resembles that of a maelstrom; a common occurance on Skrell planets. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "maelstrom_tee" + item_state = "maelstrom_tee" /obj/item/clothing/accessory/tshirt/skrell/reef - name = "reef wetshirt" - desc = "This slightly tacky wetshirt resembles the coral reefs found throughout Nralakk space. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "reef_tee" - item_state = "reef_tee" + name = "reef wetshirt" + desc = "This slightly tacky wetshirt resembles the coral reefs found throughout Nralakk space. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "reef_tee" + item_state = "reef_tee" /obj/item/clothing/accessory/tshirt/skrell/nebula - name = "pink eriuyushi nebula shirt" - desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "pink_skrell_hawaiian" - item_state = "pink_skrell_hawaiian" + name = "pink eriuyushi nebula shirt" + desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "pink_skrell_hawaiian" + item_state = "pink_skrell_hawaiian" /obj/item/clothing/accessory/tshirt/skrell/nebula/purple - name = "purple eriuyushi nebula shirt" - desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "purple_skrell_hawaiian" - item_state = "purple_skrell_hawaiian" + name = "purple eriuyushi nebula shirt" + desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "purple_skrell_hawaiian" + item_state = "purple_skrell_hawaiian" /obj/item/clothing/accessory/tshirt/skrell/nebula/teal - name = "teal eriuyushi nebula shirt" - desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "teal_skrell_hawaiian" - item_state = "teal_skrell_hawaiian" + name = "teal eriuyushi nebula shirt" + desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "teal_skrell_hawaiian" + item_state = "teal_skrell_hawaiian" /obj/item/clothing/accessory/tshirt/skrell/nebula/black - name = "black eriuyushi nebula shirt" - desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "black_skrell_hawaiian" - item_state = "black_skrell_hawaiian" + name = "black eriuyushi nebula shirt" + desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "black_skrell_hawaiian" + item_state = "black_skrell_hawaiian" /obj/item/clothing/accessory/tshirt/skrell/nebula/white - name = "white eriuyushi nebula shirt" - desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "white_skrell_hawaiian" - item_state = "white_skrell_hawaiian" + name = "white eriuyushi nebula shirt" + desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "white_skrell_hawaiian" + item_state = "white_skrell_hawaiian" /obj/item/clothing/accessory/tshirt/skrell/nebula/nralakk - name = "nralakk eriuyushi nebula shirt" - desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." - icon_state = "nralakk_skrell_hawaiian" - item_state = "nralakk_skrell_hawaiian" + name = "nralakk eriuyushi nebula shirt" + desc = "This shirt resembles the designs of Silversun tourist clothing. Most of these shirts are made in Eriuyushi and sold at their resort. This clothing is meant to trap moisture, making it uncomfortable for non-Skrell." + icon_state = "nralakk_skrell_hawaiian" + item_state = "nralakk_skrell_hawaiian" diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index 14b7810a1b5..65a64d25a95 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -6,7 +6,7 @@ SEE_MOBS // can see all mobs, no matter what SEE_OBJS // can see all objs, no matter what SEE_TURFS // can see all turfs (and areas), no matter what SEE_PIXELS// if an object is located on an unlit area, but some of its pixels are - // in a lit area (via pixel_x,y or smooth movement), can see those pixels + // in a lit area (via pixel_x,y or smooth movement), can see those pixels BLIND // can't see anything */ /obj/item/clothing/glasses @@ -51,7 +51,7 @@ BLIND // can't see anything if(normal_layer == GLASSES_LAYER) normal_layer = GLASSES_LAYER_ALT - else + else normal_layer = GLASSES_LAYER to_chat(usr, SPAN_NOTICE("\The [src] will now layer [normal_layer == 21 ? "under" : "over"] your hair.")) update_clothing_icon() @@ -317,7 +317,7 @@ BLIND // can't see anything set category = "Object" set name = "Change Glasses Layer" set src in usr - + var/list/options = list("Under Hair" = GLASSES_LAYER, "Over Hair" = GLASSES_LAYER_ALT, "Over Headwear" = GLASSES_LAYER_OVER) var/new_layer = input(usr, "Position Goggles", "Goggle style") as null|anything in options if(new_layer) diff --git a/code/modules/clothing/gloves/color.dm b/code/modules/clothing/gloves/color.dm index 84a07eee25c..f93ba4429d3 100644 --- a/code/modules/clothing/gloves/color.dm +++ b/code/modules/clothing/gloves/color.dm @@ -108,29 +108,29 @@ //more snowflake gloves for the custom loadout /obj/item/clothing/gloves/red/unathi - name = "red gloves" - desc = "Red gloves made for Unathi use." - species_restricted = list(BODYTYPE_UNATHI) + name = "red gloves" + desc = "Red gloves made for Unathi use." + species_restricted = list(BODYTYPE_UNATHI) /obj/item/clothing/gloves/blue/unathi - name = "blue gloves" - desc = "Blue gloves made for Unathi use." - species_restricted = list(BODYTYPE_UNATHI) + name = "blue gloves" + desc = "Blue gloves made for Unathi use." + species_restricted = list(BODYTYPE_UNATHI) /obj/item/clothing/gloves/orange/unathi - name = "orange gloves" - desc = "Orange gloves made for Unathi use." - species_restricted = list(BODYTYPE_UNATHI) + name = "orange gloves" + desc = "Orange gloves made for Unathi use." + species_restricted = list(BODYTYPE_UNATHI) /obj/item/clothing/gloves/purple/unathi - name = "purple gloves" - desc = "Purple gloves made for Unathi use." - species_restricted = list(BODYTYPE_UNATHI) + name = "purple gloves" + desc = "Purple gloves made for Unathi use." + species_restricted = list(BODYTYPE_UNATHI) /obj/item/clothing/gloves/brown/unathi - name = "brown gloves" - desc = "Brown gloves made for Unathi use." - species_restricted = list(BODYTYPE_UNATHI) + name = "brown gloves" + desc = "Brown gloves made for Unathi use." + species_restricted = list(BODYTYPE_UNATHI) /obj/item/clothing/gloves/light_brown/unathi name = "light brown gloves" @@ -138,9 +138,9 @@ species_restricted = list(BODYTYPE_UNATHI) /obj/item/clothing/gloves/green/unathi - name = "green gloves" - desc = "Green gloves made for Unathi use." - species_restricted = list(BODYTYPE_UNATHI) + name = "green gloves" + desc = "Green gloves made for Unathi use." + species_restricted = list(BODYTYPE_UNATHI) /obj/item/clothing/gloves/grey/unathi name = "grey gloves" @@ -232,4 +232,4 @@ icon_state = "mittens" item_state = "mittens" contained_sprite = TRUE - species_restricted = list("exclude", null) \ No newline at end of file + species_restricted = list("exclude", null) diff --git a/code/modules/clothing/gloves/xeno/tajara.dm b/code/modules/clothing/gloves/xeno/tajara.dm index b2fece943ba..fe40727d3f8 100644 --- a/code/modules/clothing/gloves/xeno/tajara.dm +++ b/code/modules/clothing/gloves/xeno/tajara.dm @@ -12,36 +12,36 @@ species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/blue/tajara - desc = "Blue gloves made for Tajaran use." - species_restricted = list(BODYTYPE_TAJARA) + desc = "Blue gloves made for Tajaran use." + species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/orange/tajara - desc = "Orange gloves made for Tajaran use." - species_restricted = list(BODYTYPE_TAJARA) + desc = "Orange gloves made for Tajaran use." + species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/purple/tajara - desc = "Purple gloves made for Tajaran use." - species_restricted = list(BODYTYPE_TAJARA) + desc = "Purple gloves made for Tajaran use." + species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/brown/tajara - desc = "Brown gloves made for Tajaran use." - species_restricted = list(BODYTYPE_TAJARA) + desc = "Brown gloves made for Tajaran use." + species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/light_brown/tajara desc = "Light brown gloves made for Tajaran use." species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/green/tajara - desc = "Green gloves made for Tajaran use." - species_restricted = list(BODYTYPE_TAJARA) + desc = "Green gloves made for Tajaran use." + species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/grey/tajara desc = "Grey gloves made for Tajaran use." species_restricted = list(BODYTYPE_TAJARA) /obj/item/clothing/gloves/white/tajara - desc = "White gloves made for Tajaran use." - species_restricted = list (BODYTYPE_TAJARA) + desc = "White gloves made for Tajaran use." + species_restricted = list (BODYTYPE_TAJARA) /obj/item/clothing/gloves/rainbow/tajara desc = "Rainbow gloves made for Tajaran use." @@ -84,4 +84,4 @@ clipped = TRUE drop_sound = 'sound/items/drop/toolbox.ogg' - pickup_sound = 'sound/items/pickup/toolbox.ogg' \ No newline at end of file + pickup_sound = 'sound/items/pickup/toolbox.ogg' diff --git a/code/modules/clothing/head/woolen_hats.dm b/code/modules/clothing/head/woolen_hats.dm index 6866bfef3a0..b0c537862bf 100644 --- a/code/modules/clothing/head/woolen_hats.dm +++ b/code/modules/clothing/head/woolen_hats.dm @@ -1,81 +1,81 @@ /obj/item/clothing/head/wool - name = "woolen hat" - desc = "A warm woolen hat with a bobble. How cozy!" - icon = 'icons/obj/item/clothing/head/wool_hats.dmi' - icon_state = "hat" - item_state = "hat" - contained_sprite = TRUE + name = "woolen hat" + desc = "A warm woolen hat with a bobble. How cozy!" + icon = 'icons/obj/item/clothing/head/wool_hats.dmi' + icon_state = "hat" + item_state = "hat" + contained_sprite = TRUE /obj/item/clothing/head/wool/idris - name = "idris woolen hat" - desc = "A warm woolen hat in Idris Incorporated colors. Have an Idris (and warm) day!" - icon_state = "hat_idris" - item_state = "hat_idris" + name = "idris woolen hat" + desc = "A warm woolen hat in Idris Incorporated colors. Have an Idris (and warm) day!" + icon_state = "hat_idris" + item_state = "hat_idris" /obj/item/clothing/head/wool/idris/alt - icon_state = "hat_idris_alt" - item_state = "hat_idris_alt" + icon_state = "hat_idris_alt" + item_state = "hat_idris_alt" /obj/item/clothing/head/wool/zavod - name = "zavodskoi woolen hat" - desc = "A warm woolen hat in Zavodskoi Interstellar colors. For only the snuggest of badasses!" - icon_state = "hat_zavod" - item_state = "hat_zavod" + name = "zavodskoi woolen hat" + desc = "A warm woolen hat in Zavodskoi Interstellar colors. For only the snuggest of badasses!" + icon_state = "hat_zavod" + item_state = "hat_zavod" /obj/item/clothing/head/wool/zavod/alt - icon_state = "hat_zavod_alt" - item_state = "hat_zavod_alt" + icon_state = "hat_zavod_alt" + item_state = "hat_zavod_alt" /obj/item/clothing/head/wool/pmc - name = "pmcg woolen hat" - desc = "A warm woolen hat in PMCG colors. Because mercenaries get cold too!" - icon_state = "hat_pmc" - item_state = "hat_pmc" + name = "pmcg woolen hat" + desc = "A warm woolen hat in PMCG colors. Because mercenaries get cold too!" + icon_state = "hat_pmc" + item_state = "hat_pmc" /obj/item/clothing/head/wool/pmc/alt - name = "epmc woolen hat" - desc = "A warm woolen hat in EPMC colors. It even comes with a holographic bobble!" - icon_state = "hat_epmc" - item_state = "hat_epmc" + name = "epmc woolen hat" + desc = "A warm woolen hat in EPMC colors. It even comes with a holographic bobble!" + icon_state = "hat_epmc" + item_state = "hat_epmc" /obj/item/clothing/head/wool/heph - name = "hephaestus woolen hat" - desc = "A warm woolen hat in Hephaetus Indrustries colors. Industiral strength head heating!" - icon_state = "hat_heph" - item_state = "hat_heph" + name = "hephaestus woolen hat" + desc = "A warm woolen hat in Hephaetus Indrustries colors. Industiral strength head heating!" + icon_state = "hat_heph" + item_state = "hat_heph" /obj/item/clothing/head/wool/nt - name = "nanotrasen woolen hat" - desc = "A warm woolen hat in NanoTrasen Corporation colors. Rumor has it this will keep you as hot as a phoron fire!" - icon_state = "hat_nt" - item_state = "hat_nt" + name = "nanotrasen woolen hat" + desc = "A warm woolen hat in NanoTrasen Corporation colors. Rumor has it this will keep you as hot as a phoron fire!" + icon_state = "hat_nt" + item_state = "hat_nt" /obj/item/clothing/head/wool/zeng - name = "zeng-hu woolen hat" - desc = "A warm woolen hat in Zeng-Hu Pharmaceuticals colors. Shivering isn't very professional!" - icon_state = "hat_zeng" - item_state = "hat_zeng" + name = "zeng-hu woolen hat" + desc = "A warm woolen hat in Zeng-Hu Pharmaceuticals colors. Shivering isn't very professional!" + icon_state = "hat_zeng" + item_state = "hat_zeng" /obj/item/clothing/head/wool/zeng/alt - icon_state = "hat_zeng_alt" - item_state = "hat_zeng_alt" + icon_state = "hat_zeng_alt" + item_state = "hat_zeng_alt" /obj/item/clothing/head/wool/orion - name = "orion woolen hat" - desc = "A warm woolen hat in Orion Express colors. Cozy employees deliver cargo faster!" - icon_state = "hat_orion" - item_state = "hat_orion" + name = "orion woolen hat" + desc = "A warm woolen hat in Orion Express colors. Cozy employees deliver cargo faster!" + icon_state = "hat_orion" + item_state = "hat_orion" /obj/item/clothing/head/wool/orion/alt - icon_state = "hat_orion_alt" - item_state = "hat_orion_alt" + icon_state = "hat_orion_alt" + item_state = "hat_orion_alt" /obj/item/clothing/head/wool/scc - name = "scc woolen hat" - desc = "A warm woolen hat in SCC colors. Is that real gold in the wool?" - icon_state = "hat_scc" - item_state = "hat_scc" + name = "scc woolen hat" + desc = "A warm woolen hat in SCC colors. Is that real gold in the wool?" + icon_state = "hat_scc" + item_state = "hat_scc" /obj/item/clothing/head/wool/scc/alt - icon_state = "hat_scc_alt" - item_state = "hat_scc_alt" \ No newline at end of file + icon_state = "hat_scc_alt" + item_state = "hat_scc_alt" diff --git a/code/modules/clothing/head/xenos/skrell.dm b/code/modules/clothing/head/xenos/skrell.dm index 5ce963afb79..6313fffe23d 100644 --- a/code/modules/clothing/head/xenos/skrell.dm +++ b/code/modules/clothing/head/xenos/skrell.dm @@ -7,7 +7,7 @@ contained_sprite = TRUE species_restricted = list(BODYTYPE_SKRELL) flags_inv = BLOCKHAIR - + /obj/item/clothing/head/skrell/skrell_bandana name = "skrell bandana" desc = "A loose fitting bandana used to cover the headtails of a Skrell." diff --git a/code/modules/clothing/spacesuits/miscellaneous.dm b/code/modules/clothing/spacesuits/miscellaneous.dm index 0f353c68dbd..9f28e594a09 100644 --- a/code/modules/clothing/spacesuits/miscellaneous.dm +++ b/code/modules/clothing/spacesuits/miscellaneous.dm @@ -10,12 +10,12 @@ slot_r_hand_str = "syndicate-helm-black-red" ) armor = list( - melee = ARMOR_MELEE_VERY_HIGH, - bullet = ARMOR_BALLISTIC_MEDIUM, + melee = ARMOR_MELEE_VERY_HIGH, + bullet = ARMOR_BALLISTIC_MEDIUM, laser = ARMOR_LASER_PISTOL, - energy = ARMOR_ENERGY_SMALL, - bomb = ARMOR_BOMB_PADDED, - bio = ARMOR_BIO_SHIELDED, + energy = ARMOR_ENERGY_SMALL, + bomb = ARMOR_BOMB_PADDED, + bio = ARMOR_BIO_SHIELDED, rad = ARMOR_RAD_RESISTANT ) max_pressure_protection = FIRESUIT_MAX_PRESSURE @@ -69,12 +69,12 @@ icon_state = "pirate" item_state = "pirate" armor = list( - melee = ARMOR_MELEE_MAJOR, - bullet = ARMOR_BALLISTIC_PISTOL, + melee = ARMOR_MELEE_MAJOR, + bullet = ARMOR_BALLISTIC_PISTOL, laser = ARMOR_LASER_SMALL, - energy = ARMOR_ENERGY_MINOR, - bomb = ARMOR_BOMB_PADDED, - bio = ARMOR_BIO_SMALL, + energy = ARMOR_ENERGY_MINOR, + bomb = ARMOR_BOMB_PADDED, + bio = ARMOR_BIO_SMALL, rad = ARMOR_RAD_MINOR ) flags_inv = BLOCKHAIR @@ -92,12 +92,12 @@ allowed = list(/obj/item/gun,/obj/item/ammo_magazine,/obj/item/ammo_casing,/obj/item/melee/baton,/obj/item/handcuffs,/obj/item/tank/emergency_oxygen) slowdown = 0 armor = list( - melee = ARMOR_MELEE_MAJOR, - bullet = ARMOR_BALLISTIC_PISTOL, + melee = ARMOR_MELEE_MAJOR, + bullet = ARMOR_BALLISTIC_PISTOL, laser = ARMOR_LASER_SMALL, - energy = ARMOR_ENERGY_MINOR, - bomb = ARMOR_BOMB_PADDED, - bio = ARMOR_BIO_SMALL, + energy = ARMOR_ENERGY_MINOR, + bomb = ARMOR_BOMB_PADDED, + bio = ARMOR_BIO_SMALL, rad = ARMOR_RAD_MINOR ) siemens_coefficient = 0.4 diff --git a/code/modules/clothing/spacesuits/rig/suits/light.dm b/code/modules/clothing/spacesuits/rig/suits/light.dm index 393e016fe12..249e240f0f2 100644 --- a/code/modules/clothing/spacesuits/rig/suits/light.dm +++ b/code/modules/clothing/spacesuits/rig/suits/light.dm @@ -1,4 +1,4 @@ -// Light rigs are not space-capable, but don't suffer excessive slowdown or sight issues when depowered. +// Light rigs are not space-capable, but don't suffer excessive slowdown or sight issues when depowered. /obj/item/rig/light name = "light suit control module" desc = "A lighter, less armored hardsuit." @@ -305,4 +305,4 @@ /obj/item/rig_module/chem_dispenser/combat, /obj/item/rig_module/device/door_hack, /obj/item/rig_module/mounted/xray - ) \ No newline at end of file + ) diff --git a/code/modules/clothing/spacesuits/void/captain.dm b/code/modules/clothing/spacesuits/void/captain.dm index 2d93e5372b8..86683b6855b 100644 --- a/code/modules/clothing/spacesuits/void/captain.dm +++ b/code/modules/clothing/spacesuits/void/captain.dm @@ -8,7 +8,7 @@ melee = ARMOR_MELEE_MAJOR, bullet = ARMOR_BALLISTIC_PISTOL, laser = ARMOR_LASER_PISTOL, - energy = ARMOR_ENERGY_SMALL, + energy = ARMOR_ENERGY_SMALL, bomb = ARMOR_BOMB_RESISTANT, bio = ARMOR_BIO_SHIELDED, rad = ARMOR_RAD_RESISTANT @@ -31,7 +31,7 @@ melee = ARMOR_MELEE_MAJOR, bullet = ARMOR_BALLISTIC_PISTOL, laser = ARMOR_LASER_PISTOL, - energy = ARMOR_ENERGY_SMALL, + energy = ARMOR_ENERGY_SMALL, bomb = ARMOR_BOMB_RESISTANT, bio = ARMOR_BIO_SHIELDED, rad = ARMOR_RAD_RESISTANT diff --git a/code/modules/clothing/suits/modular_armor.dm b/code/modules/clothing/suits/modular_armor.dm index 8d94ed5faf3..43c09f24773 100644 --- a/code/modules/clothing/suits/modular_armor.dm +++ b/code/modules/clothing/suits/modular_armor.dm @@ -498,7 +498,7 @@ /obj/item/clothing/accessory/flagpatch/pluto name = "pluto flagpatch" desc = "A flagpatch representing Pluto. As loyalty to the party is very important on the communist planet, \ - these patches have become a popular way for Plutonians to display their affiliation with their home." + these patches have become a popular way for Plutonians to display their affiliation with their home." icon_state = "flagpatch_pluto" item_state = "flagpatch_pluto" diff --git a/code/modules/clothing/suits/xeno/diona.dm b/code/modules/clothing/suits/xeno/diona.dm index 34552114ff9..4230e6769ea 100644 --- a/code/modules/clothing/suits/xeno/diona.dm +++ b/code/modules/clothing/suits/xeno/diona.dm @@ -20,7 +20,7 @@ desc = "A set of mesh weave robes worn almost exclusively by priests of the Blood Eternal faith." icon_state = "blood_robe" item_state = "blood_robe" - + /obj/item/clothing/suit/diona/carp name = "carp hide poncho" desc = "A poncho made up of carp hide." diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index 693d2d88954..786335cc98e 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -250,7 +250,7 @@ var/obj/item/organ/organ = M.get_organ(user.zone_sel.selecting) if(organ) user.visible_message(SPAN_NOTICE("[user] places [src] against [M]'s [organ.name] and listens attentively."), - "You place [src] against [M]'s [organ.name]. You hear [english_list(organ.listen())].") + "You place [src] against [M]'s [organ.name]. You hear [english_list(organ.listen())].") return return ..(M,user) @@ -759,7 +759,7 @@ desc = "This cloak is given to Zeng-Hu employees who have assisted or worked in collaboration with the Nralakk Federation." desc_extended = "A cloak given to senior level doctors and researchers for Zeng-Hu who has \ in the past been given the privilege of working within or in collaboration with the Nralakk Federation\ - as a show of goodwill between the corporation and federation." + as a show of goodwill between the corporation and federation." icon = 'icons/obj/item/clothing/accessory/zh_cape.dmi' icon_override = 'icons/obj/item/clothing/accessory/zh_cape.dmi' icon_state = "ZH_cape" diff --git a/code/modules/clothing/under/accessories/badges.dm b/code/modules/clothing/under/accessories/badges.dm index 7fda7adf06d..e95faee0ee2 100644 --- a/code/modules/clothing/under/accessories/badges.dm +++ b/code/modules/clothing/under/accessories/badges.dm @@ -277,11 +277,11 @@ badge_string = null /obj/item/clothing/accessory/badge/trinary - name = "trinary perfection brooch" - desc = "A metal brooch worn by those who serve or follow the beliefs of the Trinary Perfection. It resembles a gear with a triangle inside." - icon_state = "trinary_badge" - overlay_state = "trinary_badge" - badge_string = null + name = "trinary perfection brooch" + desc = "A metal brooch worn by those who serve or follow the beliefs of the Trinary Perfection. It resembles a gear with a triangle inside." + icon_state = "trinary_badge" + overlay_state = "trinary_badge" + badge_string = null // passcards @@ -308,7 +308,7 @@ name = "synthetic residence card" desc = "A passcard issued to free IPCs within the Republic of Biesel, providing resident status and allowing the owning of property, among other things." desc_extended = "Working alongside IPC tags within the Republic of Biesel, the synthetic residence card has a small RFID chip embedded in it which allows governmental authorities to confirm whether or not an IPC \ - is free and taking residency within the system. They were recently introduced in order to provide streamlined documentation for IPCs that have attained freedom but are not citizens." + is free and taking residency within the system. They were recently introduced in order to provide streamlined documentation for IPCs that have attained freedom but are not citizens." icon_state = "passcard_ceti_m" item_state = "passcard_ceti_m" diff --git a/code/modules/clothing/under/xenos/diona.dm b/code/modules/clothing/under/xenos/diona.dm index b5ab78d5971..de2cf24013a 100644 --- a/code/modules/clothing/under/xenos/diona.dm +++ b/code/modules/clothing/under/xenos/diona.dm @@ -8,7 +8,7 @@ desc = "An old prison uniform, tattered with age. A Hephaestus logo has been haphazardly stitched to the shoulder, and a band of green circles around the middle." icon_state = "narrows" item_state = "narrows" - + /obj/item/clothing/under/diona/dionatunic name = "floral tunic" desc = "A tunic made up of several colorful fabrics and adorned with seemingly still-living vines and flowers" diff --git a/code/modules/compass/_compass.dm b/code/modules/compass/_compass.dm index 1ceb975b0c2..bb0a581fb56 100644 --- a/code/modules/compass/_compass.dm +++ b/code/modules/compass/_compass.dm @@ -3,13 +3,13 @@ #define COMPASS_LABEL_OFFSET 150 /* - This folder contains an abstract type (/obj/compass_holder) which contains a set of - waypoints (/datum/compass_waypoint) and generates a circular compass with markers for - mobs that have the object in their screen list. See GPS for an example implementation. + This folder contains an abstract type (/obj/compass_holder) which contains a set of + waypoints (/datum/compass_waypoint) and generates a circular compass with markers for + mobs that have the object in their screen list. See GPS for an example implementation. */ /image/compass_marker maptext_height = 64 maptext_width = 128 maptext_x = -48 - maptext_y = -32 \ No newline at end of file + maptext_y = -32 diff --git a/code/modules/compass/compass_holder.dm b/code/modules/compass/compass_holder.dm index 2eca5759b8d..18504538e89 100644 --- a/code/modules/compass/compass_holder.dm +++ b/code/modules/compass/compass_holder.dm @@ -44,7 +44,7 @@ else str = angle_step_to_dir[clamp(round(angle/45)+1, 1, length(angle_step_to_dir))] str_col = "#ffffffaa" - else + else str = "〡" str_col = "#aaaaaa88" I.maptext = " " t += " " - // Iterating by index simplifies editing/deletion in game, + // Iterating by index simplifies editing/deletion in game, // since the href_list["pos"] var is consistent for(var/i = 1, i <= my_list.len; i++) t += "#[i] | [display_data(my_list[i])] | " diff --git a/code/modules/integrated_electronics/passive/power.dm b/code/modules/integrated_electronics/passive/power.dm index 2ebac4556d5..24ae84a3e16 100644 --- a/code/modules/integrated_electronics/passive/power.dm +++ b/code/modules/integrated_electronics/passive/power.dm @@ -121,7 +121,8 @@ desc = "Produces electricity from chemicals." icon_state = "chemical_cell" extended_desc = "This is effectively an internal beaker. It will consume and produce power from phoron, slime jelly, welding fuel, carbon,\ - ethanol, nutriments and blood, in order of decreasing efficiency. It will consume fuel only if the battery can take more energy." + ethanol, nutriments and blood, in order of decreasing efficiency. It will consume fuel only if the battery can take more energy." + flags = OPENCONTAINER complexity = 4 inputs = list() diff --git a/code/modules/integrated_electronics/subtypes/data_transfer.dm b/code/modules/integrated_electronics/subtypes/data_transfer.dm index 4abd687a87e..3a51b5c2fbe 100644 --- a/code/modules/integrated_electronics/subtypes/data_transfer.dm +++ b/code/modules/integrated_electronics/subtypes/data_transfer.dm @@ -91,7 +91,7 @@ for(var/i = 1 to outputs.len) set_pin_data(IC_OUTPUT, i, i == output_index ? output : null) - + push_data() activate_pin(2) diff --git a/code/modules/integrated_electronics/subtypes/insert_slot.dm b/code/modules/integrated_electronics/subtypes/insert_slot.dm index 0f29b398a4e..21530d97e9a 100644 --- a/code/modules/integrated_electronics/subtypes/insert_slot.dm +++ b/code/modules/integrated_electronics/subtypes/insert_slot.dm @@ -7,13 +7,13 @@ var/list/items_contained = list() activators = list("eject contents" = IC_PINTYPE_PULSE_IN) outputs = list("has item" = IC_PINTYPE_BOOLEAN) - power_draw_per_use = 1 + power_draw_per_use = 1 w_class = ITEMSIZE_NORMAL size = 5 complexity = 1 //call this function from components that want to get items from this component -//set remove to FALSE if you dont want the item removed from the component and just want a reference to it +//set remove to FALSE if you dont want the item removed from the component and just want a reference to it //(e.g. for beakers) /obj/item/integrated_circuit/insert_slot/proc/get_item(var/remove = FALSE) if(items_contained.len > 0) diff --git a/code/modules/lighting/__lighting_docs.dm b/code/modules/lighting/__lighting_docs.dm index 03214872b1f..fcd2e63d51a 100644 --- a/code/modules/lighting/__lighting_docs.dm +++ b/code/modules/lighting/__lighting_docs.dm @@ -1,56 +1,56 @@ /* - -- Aurora directional lighting system, based off of /vg/lights. -- - - Documentation is present in most of the code files. - lighting_atom.dm -> procs/vars for tracking/managing lights attached to objects. - lighting_turf.dm -> procs/vars for managing lighting overlays bound to turfs, tracking lights affecting said turf, and getting information about the turf's light level. - lighting_corner.dm -> contains code for tracking per-corner lighting data. - lighting_source.dm -> contains actual light emitter datum & core lighting calculations. Directional lights and Z-lights are implemented here. - lighting_source_novis.dm -> Same as lighting_source.dm, but does not take visibility into account - used for sun objects. - lighting_profiler.dm -> contains code used for the diagnostic lighting profiler (currently disabled). - lighting_area.dm -> contains area vars/procs for managing an area's dynamic lighting state. - lighting_verbs.dm -> contains verbs for debugging lighting. + -- Aurora directional lighting system, based off of /vg/lights. -- + + Documentation is present in most of the code files. + lighting_atom.dm -> procs/vars for tracking/managing lights attached to objects. + lighting_turf.dm -> procs/vars for managing lighting overlays bound to turfs, tracking lights affecting said turf, and getting information about the turf's light level. + lighting_corner.dm -> contains code for tracking per-corner lighting data. + lighting_source.dm -> contains actual light emitter datum & core lighting calculations. Directional lights and Z-lights are implemented here. + lighting_source_novis.dm -> Same as lighting_source.dm, but does not take visibility into account - used for sun objects. + lighting_profiler.dm -> contains code used for the diagnostic lighting profiler (currently disabled). + lighting_area.dm -> contains area vars/procs for managing an area's dynamic lighting state. + lighting_verbs.dm -> contains verbs for debugging lighting. */ /* - Useful procs when using lights: + Useful procs when using lights: /atom/proc/set_light(range, power, color, uv_power, angle, no_update) - desc: Sets an atom's light emission. `set_light(FALSE)` will disable the light. - args: - range -> the range of the light. 1.4 is the lowest possible value here. - power -> the power (intensity) of the light. Generally should be 1 or lower. Optional. - color -> The hex string (#FFFFFF) color of the light. Optional. - uv_power -> The UV power of this light. Must be between 0 and 255. Optional. - angle -> The angle of the cone that the light should shine at (directional lighting). Behavior of lights over 180 degrees is undefined. Best to stick to using the LIGHT_ defines for this. Optional. - no_update -> if TRUE, the light will not be updated. Useful for when making several of these calls to the same object. Optional. + desc: Sets an atom's light emission. `set_light(FALSE)` will disable the light. + args: + range -> the range of the light. 1.4 is the lowest possible value here. + power -> the power (intensity) of the light. Generally should be 1 or lower. Optional. + color -> The hex string (#FFFFFF) color of the light. Optional. + uv_power -> The UV power of this light. Must be between 0 and 255. Optional. + angle -> The angle of the cone that the light should shine at (directional lighting). Behavior of lights over 180 degrees is undefined. Best to stick to using the LIGHT_ defines for this. Optional. + no_update -> if TRUE, the light will not be updated. Useful for when making several of these calls to the same object. Optional. /atom/proc/set_opacity(new_opacity) - desc: Sets an atom's opacity, updating affecting lights' visibility. Returns TRUE if opacity changed, FALSE otherwise. - args: - new_opacity -> the new opacity value. + desc: Sets an atom's opacity, updating affecting lights' visibility. Returns TRUE if opacity changed, FALSE otherwise. + args: + new_opacity -> the new opacity value. /turf/proc/reconsider_lights() - desc: Cause all lights affecting this turf to recalculate visibility. - args: none + desc: Cause all lights affecting this turf to recalculate visibility. + args: none /turf/proc/force_update_lights() - desc: Force all lights affecting this turf to regenerate. Slow, use reconsider_lights instead when possible. - args: none + desc: Force all lights affecting this turf to regenerate. Slow, use reconsider_lights instead when possible. + args: none /turf/proc/get_avg_color() - desc: Gets the average color of this tile as a hexadecimal color string. Used by cameras. + desc: Gets the average color of this tile as a hexadecimal color string. Used by cameras. /turf/proc/get_lumcount(minlum = 0, maxlum = 1) - desc: Gets the brightness of this tile. If not dynamically lit, always returns 0.5, otherwise returns the average brightness of all 4 corners, scaled between minlum and maxlum. - args: - minlum -> the low-bound of the scalar. - maxlum -> the high-bound of the scalar. + desc: Gets the brightness of this tile. If not dynamically lit, always returns 0.5, otherwise returns the average brightness of all 4 corners, scaled between minlum and maxlum. + args: + minlum -> the low-bound of the scalar. + maxlum -> the high-bound of the scalar. /turf/proc/get_uv_lumcount(minlum = 0, maxlum = 1) - desc: Same as above, but only considers UV light. - args: - minlum -> the low-bound of the scalar. - maxlum -> the high-bound of the scalar. + desc: Same as above, but only considers UV light. + args: + minlum -> the low-bound of the scalar. + maxlum -> the high-bound of the scalar. */ diff --git a/code/modules/lighting/lighting_source_sunlight.dm b/code/modules/lighting/lighting_source_sunlight.dm index 8c9ad3600bc..c7466639316 100644 --- a/code/modules/lighting/lighting_source_sunlight.dm +++ b/code/modules/lighting/lighting_source_sunlight.dm @@ -194,4 +194,4 @@ #undef QUEUE_UPDATE -#endif +#endif diff --git a/code/modules/lighting/lighting_turf.dm b/code/modules/lighting/lighting_turf.dm index 2d46c42cc88..6d997caf7e2 100644 --- a/code/modules/lighting/lighting_turf.dm +++ b/code/modules/lighting/lighting_turf.dm @@ -185,7 +185,7 @@ /turf/proc/generate_missing_corners() if (!dynamic_lighting && !light_sources) return - + lighting_corners_initialised = TRUE if (!corners) corners = list(null, null, null, null) diff --git a/code/modules/maps/planet_types/asteroid.dm b/code/modules/maps/planet_types/asteroid.dm index 39cd429f293..534d2509122 100644 --- a/code/modules/maps/planet_types/asteroid.dm +++ b/code/modules/maps/planet_types/asteroid.dm @@ -14,7 +14,7 @@ place_near_main = list(1, 1) /obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/update_icon() - icon_state = "asteroid[rand(1,3)]" + icon_state = "asteroid[rand(1,3)]" /obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/generate_planet_image() skybox_image = image('icons/skybox/skybox_rock_128.dmi', "bigrock") diff --git a/code/modules/maps/swapmaps.dm b/code/modules/maps/swapmaps.dm index 93665fb98e0..851d9c4a8ca 100644 --- a/code/modules/maps/swapmaps.dm +++ b/code/modules/maps/swapmaps.dm @@ -18,8 +18,7 @@ - House interiors - Individual custom player houses - Virtually unlimited terrain - - Sharing maps between servers running different instances of the same - game + - Sharing maps between servers running different instances of the same game - Loading and saving pieces of maps for reusable room templates */ @@ -58,7 +57,7 @@ SwapMaps_CreateFromTemplate(id) Create a new map by loading another map to use as a template. This map has id==src and will not be saved. To make it savable, - change id with swapmap.SetID(newid). + change id with swapmap.SetID(newid). SwapMaps_LoadChunk(id,turf/locorner) Load a swapmap as a "chunk", at a specific place. A new datum is created but it's not added to the list of maps to save or unload. @@ -79,16 +78,16 @@ Cache an icon file by name for space-saving storage swapmap.New(id,x,y,z) - Create a new map; specify id, width (x), height (y), and - depth (z) + Create a new map; specify id, width (x), height (y), and depth (z) Default size is world.maxx,world.maxy,1 + swapmap.New(id,turf1,turf2) Create a new map; specify id and 2 corners - This becomes a /swapmap for one of the compiled-in maps, for - easy saving. + This becomes a /swapmap for one of the compiled-in maps, for easy saving. + swapmap.New() - Create a new map datum, but does not allocate space or assign an - ID (used for loading). + Create a new map datum, but does not allocate space or assign an ID (used for loading). + swapmap.Del() Deletes a map but does not save swapmap.Save() @@ -100,30 +99,28 @@ swapmap.SetID(id) Change the map's id and make changes to the lookup list swapmap.AllTurfs(z) - Returns a block of turfs encompassing the entire map, or on just - one z-level + Returns a block of turfs encompassing the entire map, or on just one z-level z is in world coordinates; it is optional + swapmap.Contains(turf/T) Returns nonzero if T is inside the map's boundaries. Also works for objs and mobs, but the proc is not area-safe. swapmap.InUse() - Returns nonzero if a mob with a key is within the map's - boundaries. + Returns nonzero if a mob with a key is within the map's boundaries. + swapmap.LoCorner(z=z1) Returns locate(x1,y1,z), where z=z1 if none is specified. swapmap.HiCorner(z=z2) Returns locate(x2,y2,z), where z=z2 if none is specified. swapmap.BuildFilledRectangle(turf/corner1,turf/corner2,item) - Builds a filled rectangle of item from one corner turf to the - other, on multiple z-levels if necessary. The corners may be - specified in any order. + Builds a filled rectangle of item from one corner turf to the other, on multiple z-levels if necessary. The corners may be specified in any order. item is a type path like /turf/wall or /obj/barrel{full=1}. + swapmap.BuildRectangle(turf/corner1,turf/corner2,item) - Builds an unfilled rectangle of item from one corner turf to - the other, on multiple z-levels if necessary. + Builds an unfilled rectangle of item from one corner turf to the other, on multiple z-levels if necessary. + swapmap.BuildInTurfs(list/turfs,item) - Builds item on all of the turfs listed. The list need not - contain only turfs, or even only atoms. + Builds item on all of the turfs listed. The list need not contain only turfs, or even only atoms. */ /swapmap diff --git a/code/modules/martial_arts/sleeping_carp.dm b/code/modules/martial_arts/sleeping_carp.dm index 34553bd09bd..166401312f6 100644 --- a/code/modules/martial_arts/sleeping_carp.dm +++ b/code/modules/martial_arts/sleeping_carp.dm @@ -61,7 +61,7 @@ if(!D.stat && !D.weakened) A.do_attack_animation(D) D.visible_message("[A] knees [D] in the stomach!", \ - "[A] winds you with a knee in the stomach!") + "[A] winds you with a knee in the stomach!") D.audible_message("[D] gags!") if (!(D.species.flags & NO_BREATHE)) D.losebreath += 3 @@ -75,7 +75,7 @@ if(!D.stat && !D.weakened) A.do_attack_animation(D) D.visible_message("[A] kicks [D] in the head!", \ - "[A] kicks you in the jaw!") + "[A] kicks you in the jaw!") D.apply_damage(20, DAMAGE_BRUTE, BP_HEAD) D.drop_item() playsound(get_turf(D), "punch", 50, 1, -1) @@ -134,4 +134,4 @@ #undef BACK_KICK_COMBO #undef STOMACH_KNEE_COMBO #undef HEAD_KICK_COMBO -#undef ELBOW_DROP_COMBO \ No newline at end of file +#undef ELBOW_DROP_COMBO diff --git a/code/modules/martial_arts/vaurca.dm b/code/modules/martial_arts/vaurca.dm index 2ae8aa75bd6..268f9b03380 100644 --- a/code/modules/martial_arts/vaurca.dm +++ b/code/modules/martial_arts/vaurca.dm @@ -48,7 +48,7 @@ A.do_attack_animation(D) var/atk_verb = pick("slices", "pinches", "chops", "bites", "claws") D.visible_message("[A] [atk_verb] [D]!", \ - "[A] [atk_verb] you!") + "[A] [atk_verb] you!") D.apply_damage(rand(5,15), DAMAGE_BRUTE, damage_flags = DAMAGE_FLAG_SHARP) playsound(get_turf(D), 'sound/weapons/slash.ogg', 25, 1, -1) @@ -98,4 +98,4 @@ #undef PIERCING_STRIKE #undef SWIFT_BITE -#undef CRUSHING_JAWS \ No newline at end of file +#undef CRUSHING_JAWS diff --git a/code/modules/mining/coins.dm b/code/modules/mining/coins.dm index 68a2715a862..a59af11fd6c 100644 --- a/code/modules/mining/coins.dm +++ b/code/modules/mining/coins.dm @@ -111,4 +111,4 @@ icon_state = "coin_[cmineral]_[comment]" playsound(get_turf(src), 'sound/items/coinflip.ogg', 100, 1, -4) user.visible_message(SPAN_NOTICE("\The [user] throws \the [src]. It lands on [comment]!"), \ - SPAN_NOTICE("You throw \the [src]. It lands on [comment]!")) + SPAN_NOTICE("You throw \the [src]. It lands on [comment]!")) diff --git a/code/modules/mining/machine_rigpress.dm b/code/modules/mining/machine_rigpress.dm index 5f7452be8b5..bcf978dc40a 100644 --- a/code/modules/mining/machine_rigpress.dm +++ b/code/modules/mining/machine_rigpress.dm @@ -18,7 +18,7 @@ /obj/item/pickaxe/diamond = /obj/item/rig_module/device/drill, /obj/item/gun/energy/vaurca/thermaldrill = /obj/item/rig_module/mounted/thermalldrill ) - + /obj/machinery/mineral/rigpress/Initialize() . = ..() for(var/press_type in press_types) diff --git a/code/modules/mob/abstract/freelook/ai/chunk.dm b/code/modules/mob/abstract/freelook/ai/chunk.dm index 954f9ffc946..276445c13ee 100644 --- a/code/modules/mob/abstract/freelook/ai/chunk.dm +++ b/code/modules/mob/abstract/freelook/ai/chunk.dm @@ -9,7 +9,7 @@ var/obj/machinery/camera/c = source if(!c.can_use()) continue - + for(var/turf/t in c.can_see()) visible[t] = t else if(isAI(source)) @@ -21,4 +21,4 @@ visible[t] = t else log_visualnet("Contained an unhandled source", source) - sources -= source \ No newline at end of file + sources -= source diff --git a/code/modules/mob/abstract/freelook/chunk.dm b/code/modules/mob/abstract/freelook/chunk.dm index 72376d9fb5c..8b9715934f4 100644 --- a/code/modules/mob/abstract/freelook/chunk.dm +++ b/code/modules/mob/abstract/freelook/chunk.dm @@ -176,7 +176,7 @@ var/mob/abstract/eye/m = eye if (m && m.owner && m.owner.client) m.owner.client.images += obfuscation_image - + dirty = FALSE updating = FALSE diff --git a/code/modules/mob/abstract/freelook/read_me.dm b/code/modules/mob/abstract/freelook/read_me.dm index 869fcc2cdac..2795333e112 100644 --- a/code/modules/mob/abstract/freelook/read_me.dm +++ b/code/modules/mob/abstract/freelook/read_me.dm @@ -1,51 +1,51 @@ // CREDITS /* - Initial code credit for this goes to Uristqwerty. - Debugging, functionality, all comments and porting by Giacom. +Initial code credit for this goes to Uristqwerty. +Debugging, functionality, all comments and porting by Giacom. - Everything about freelook (or what we can put in here) will be stored here. +Everything about freelook (or what we can put in here) will be stored here. - WHAT IS THIS? +WHAT IS THIS? - This is a replacement for the current camera movement system, of the AI. Before this, the AI had to move between cameras and could - only see what the cameras could see. Not only this but the cameras could see through walls, which created problems. - With this, the AI controls an "AI Eye" mob, which moves just like a ghost; such as moving through walls and being invisible to players. - The AI's eye is set to this mob and then we use a system (explained below) to determine what the cameras around the AI Eye can and - cannot see. If the camera cannot see a turf, it will black it out, otherwise it won't and the AI will be able to see it. - This creates several features, such as.. no more see-through-wall cameras, easier to control camera movement, easier tracking, - the AI only being able to track mobs which are visible to a camera, only trackable mobs appearing on the mob list and many more. +This is a replacement for the current camera movement system, of the AI. Before this, the AI had to move between cameras and could +only see what the cameras could see. Not only this but the cameras could see through walls, which created problems. +With this, the AI controls an "AI Eye" mob, which moves just like a ghost; such as moving through walls and being invisible to players. +The AI's eye is set to this mob and then we use a system (explained below) to determine what the cameras around the AI Eye can and +cannot see. If the camera cannot see a turf, it will black it out, otherwise it won't and the AI will be able to see it. +This creates several features, such as.. no more see-through-wall cameras, easier to control camera movement, easier tracking, +the AI only being able to track mobs which are visible to a camera, only trackable mobs appearing on the mob list and many more. - HOW IT WORKS +HOW IT WORKS - It works by first creating a camera network datum. Inside of this camera network are "chunks" (which will be - explained later) and "cameras". The cameras list is kept up to date by obj/machinery/camera/New() and Destroy(). +It works by first creating a camera network datum. Inside of this camera network are "chunks" (which will be +explained later) and "cameras". The cameras list is kept up to date by obj/machinery/camera/New() and Destroy(). - Next the camera network has chunks. These chunks are a 16x16 tile block of turfs and cameras contained inside the chunk. - These turfs are then sorted out based on what the cameras can and cannot see. If none of the cameras can see the turf, inside - the 16x16 block, it is listed as an "obscured" turf. Meaning the AI won't be able to see it. +Next the camera network has chunks. These chunks are a 16x16 tile block of turfs and cameras contained inside the chunk. +These turfs are then sorted out based on what the cameras can and cannot see. If none of the cameras can see the turf, inside +the 16x16 block, it is listed as an "obscured" turf. Meaning the AI won't be able to see it. - HOW IT UPDATES +HOW IT UPDATES - The camera network uses a streaming method in order to effeciently update chunks. Since the server will have doors opening, doors closing, - turf being destroyed and other lag inducing stuff, we want to update it under certain conditions and not every tick. +The camera network uses a streaming method in order to effeciently update chunks. Since the server will have doors opening, doors closing, +turf being destroyed and other lag inducing stuff, we want to update it under certain conditions and not every tick. - The chunks are not created straight away, only when an AI eye moves into it's area is when it gets created. - One a chunk is created, when a non glass door opens/closes or an opacity turf is destroyed, we check to see if an AI Eye is looking in the area. - We do this with the "seenby" list, which updates everytime an AI is near a chunk. If there is an AI eye inside the area, we update the chunk - that the changed atom is inside and all surrounding chunks, since a camera's vision could leak onto another chunk. If there is no AI Eye, we instead - flag the chunk to update whenever it is loaded by an AI Eye. This is basically how the chunks update and keep it in sync. We then add some lag reducing - measures, such as an UPDATE_BUFFER which stops a chunk from updating too many times in a certain time-frame, only updating if the changed atom was blocking - sight; for example, we don't update glass airlocks or floors. +The chunks are not created straight away, only when an AI eye moves into it's area is when it gets created. +One a chunk is created, when a non glass door opens/closes or an opacity turf is destroyed, we check to see if an AI Eye is looking in the area. +We do this with the "seenby" list, which updates everytime an AI is near a chunk. If there is an AI eye inside the area, we update the chunk +that the changed atom is inside and all surrounding chunks, since a camera's vision could leak onto another chunk. If there is no AI Eye, we instead +flag the chunk to update whenever it is loaded by an AI Eye. This is basically how the chunks update and keep it in sync. We then add some lag reducing +measures, such as an UPDATE_BUFFER which stops a chunk from updating too many times in a certain time-frame, only updating if the changed atom was blocking +sight; for example, we don't update glass airlocks or floors. - WHERE IS EVERYTHING? +WHERE IS EVERYTHING? - cameranet.dm = Everything about the cameranet datum. - chunk.dm = Everything about the chunk datum. - eye.dm = Everything about the AI and the AIEye. - updating.dm = Everything about triggers that will update chunks. +cameranet.dm = Everything about the cameranet datum. +chunk.dm = Everything about the chunk datum. +eye.dm = Everything about the AI and the AIEye. +updating.dm = Everything about triggers that will update chunks. */ diff --git a/code/modules/mob/animations.dm b/code/modules/mob/animations.dm index e8d36f330ce..ac7d13aac2b 100644 --- a/code/modules/mob/animations.dm +++ b/code/modules/mob/animations.dm @@ -48,7 +48,7 @@ note dizziness decrements automatically in the mob's Life() proc. /mob/proc/make_jittery(var/amount) return -/mob/living/carbon/human/make_jittery(amount) +/mob/living/carbon/human/make_jittery(amount) jitteriness = min(1000, jitteriness + amount) // store what will be new value // clamped to max 1000 if(jitteriness > 100 && !is_jittery && stat != DEAD && !(status_flags & FAKEDEATH)) diff --git a/code/modules/mob/living/bot/cleanbot.dm b/code/modules/mob/living/bot/cleanbot.dm index 91b5fa13033..967d85f633c 100644 --- a/code/modules/mob/living/bot/cleanbot.dm +++ b/code/modules/mob/living/bot/cleanbot.dm @@ -327,7 +327,7 @@ var/list/cleanbot_types // Going to use this to generate a list of types once th // This just generates the global list if it hasn't been done already, quick process. cleanbot_types = typesof(/obj/effect/decal/cleanable/blood,/obj/effect/decal/cleanable/vomit,\ /obj/effect/decal/cleanable/crayon,/obj/effect/decal/cleanable/liquid_fuel,/obj/effect/decal/cleanable/mucus,/obj/effect/decal/cleanable/dirt) - // I honestly forgot you could pass multiple types to typesof() until I accidentally did it here. + // I honestly forgot you could pass multiple types to typesof() until I accidentally did it here. target_types = cleanbot_types.Copy() if(!cleans_blood) target_types -= typesof(/obj/effect/decal/cleanable/blood)-typesof(/obj/effect/decal/cleanable/blood/oil) diff --git a/code/modules/mob/living/bot/farmbot.dm b/code/modules/mob/living/bot/farmbot.dm index 0910cd2d37f..78cab6dc186 100644 --- a/code/modules/mob/living/bot/farmbot.dm +++ b/code/modules/mob/living/bot/farmbot.dm @@ -167,7 +167,7 @@ continue if(!process_tray(tray)) //If there's nothing for us to do with the plant, ignore this tray. continue - if(pathfind(tray)) //If we can get there, we can accept it as a target. + if(pathfind(tray)) //If we can get there, we can accept it as a target. target = tray frustration = 0 break @@ -190,7 +190,7 @@ if(!length(freespaces)) return FALSE - //If we got here, we know there's a space around it that we can use to access the tray/target. Let's try to find a path to it. + //If we got here, we know there's a space around it that we can use to access the tray/target. Let's try to find a path to it. var/turf/location_goal = pick(freespaces) path = AStar(loc, location_goal, /turf/proc/CardinalTurfsWithAccess, /turf/proc/Distance, 0, 30, id = botcard) if(!path) diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm index acb90d4056a..af36c133aa6 100644 --- a/code/modules/mob/living/carbon/carbon_defense.dm +++ b/code/modules/mob/living/carbon/carbon_defense.dm @@ -67,7 +67,7 @@ to_chat(H, SPAN_DANGER("You sense great disturbance to your physical body!")) else if(!vr_mob) user.visible_message("[user] attacks [src] with [I] waking [get_pronoun("him")] up!", \ - "You attack [src] with [I], but they do not respond... Maybe they have S.S.D?") + "You attack [src] with [I], but they do not respond... Maybe they have S.S.D?") else if(client && willfully_sleeping) user.visible_message("[user] attacked [src] with [I] waking [get_pronoun("him")] up!", \ "You attack [src] with [I], waking [get_pronoun("him")] up!") diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index b1cb57c7841..7639d22d484 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -15,7 +15,7 @@ if(!I) to_chat(usr, SPAN_WARNING("You don't have anything in your hands to give to \the [target].")) return - + if(I.too_heavy_to_throw()) to_chat(src, SPAN_WARNING("You can barely lift \the [I] up, how do you expect to hand it over to someone?")) return FALSE @@ -48,4 +48,4 @@ I.on_give(usr, target) if(!QDELETED(I)) // if on_give deletes the item, we don't want runtimes below target.put_in_hands(I) // If this fails it will just end up on the floor, but that's fitting for things like dionaea. - usr.visible_message("[usr] hands [target] \a [I].", SPAN_NOTICE("You give \the [target] a [I].")) \ No newline at end of file + usr.visible_message("[usr] hands [target] \a [I].", SPAN_NOTICE("You give \the [target] a [I].")) diff --git a/code/modules/mob/living/carbon/human/devour.dm b/code/modules/mob/living/carbon/human/devour.dm index 0953c9b5ef0..ee851e0fb90 100644 --- a/code/modules/mob/living/carbon/human/devour.dm +++ b/code/modules/mob/living/carbon/human/devour.dm @@ -1,4 +1,4 @@ - #define PPM 9 //Protein per meat, used for calculating the quantity of protein in an animal +#define PPM 9 //Protein per meat, used for calculating the quantity of protein in an animal /** * Attempt to devour victim diff --git a/code/modules/mob/living/carbon/human/human_maneuvers.dm b/code/modules/mob/living/carbon/human/human_maneuvers.dm index c5946712dd0..b03f7dac37d 100644 --- a/code/modules/mob/living/carbon/human/human_maneuvers.dm +++ b/code/modules/mob/living/carbon/human/human_maneuvers.dm @@ -9,11 +9,11 @@ /mob/living/carbon/human/get_jump_distance() . = species.standing_jump_range - + var/obj/item/organ/internal/augment/suspension/suspension = internal_organs_by_name[BP_AUG_SUSPENSION] if(suspension && . < 3) - . = max(. + suspension.jump_bonus, 3) + . = max(. + suspension.jump_bonus, 3) /mob/living/carbon/human/can_do_maneuver(var/singleton/maneuver/maneuver, var/silent = FALSE) . = ..() diff --git a/code/modules/mob/living/carbon/human/say.dm b/code/modules/mob/living/carbon/human/say.dm index 25fa6a5943e..191ab4b9db5 100644 --- a/code/modules/mob/living/carbon/human/say.dm +++ b/code/modules/mob/living/carbon/human/say.dm @@ -101,12 +101,12 @@ /* - ***Deprecated*** - let this be handled at the hear_say or hear_radio proc - This is left in for robot speaking when humans gain binary channel access until I get around to rewriting - robot_talk() proc. - There is no language handling build into it however there is at the /mob level so we accept the call - for it but just ignore it. + ***Deprecated*** + let this be handled at the hear_say or hear_radio proc + This is left in for robot speaking when humans gain binary channel access until I get around to rewriting + robot_talk() proc. + There is no language handling build into it however there is at the /mob level so we accept the call + for it but just ignore it. */ /mob/living/carbon/human/say_quote(var/message, var/datum/language/speaking = null, var/singing = FALSE, var/whisper = FALSE) diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index 5cc5fc812e1..1b68b455c15 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -159,8 +159,7 @@ var/hazard_low_pressure = HAZARD_LOW_PRESSURE // Dangerously low pressure. var/light_dam // If set, mob will be damaged in light over this value and heal in light below its negative. var/breathing_sound = 'sound/voice/monkey.ogg' // If set, this mob will have a breathing sound. - var/body_temperature = 310.15 // Non-IS_SYNTHETIC species will try to stabilize at this temperature. - // (also affects temperature processing) + var/body_temperature = 310.15 // Non-IS_SYNTHETIC species will try to stabilize at this temperature. (also affects temperature processing) var/heat_discomfort_level = 315 // Aesthetic messages about feeling warm. var/cold_discomfort_level = 285 // Aesthetic messages about feeling chilly. @@ -239,7 +238,7 @@ var/max_hydration_factor = 1 //Multiplier on maximum thirst var/hydration_loss_factor = 1 //Multiplier on passive thirst losses - // Determines the organs that the species spawns with and + ///Determines the organs that the species spawns with and var/list/has_organ = list( // which required-organ checks are conducted. BP_HEART = /obj/item/organ/internal/heart, BP_LUNGS = /obj/item/organ/internal/lungs, diff --git a/code/modules/mob/living/carbon/human/species/species_damage.dm b/code/modules/mob/living/carbon/human/species/species_damage.dm index a10b42c4b63..841cfecd0c7 100644 --- a/code/modules/mob/living/carbon/human/species/species_damage.dm +++ b/code/modules/mob/living/carbon/human/species/species_damage.dm @@ -8,4 +8,4 @@ if(C.nutrition <= C.max_nutrition * 0.05) to_chat(C, SPAN_WARNING("We cannot support our summoned apparitions with our biomass any longer...")) return FALSE - return TRUE \ No newline at end of file + return TRUE diff --git a/code/modules/mob/living/carbon/human/species/station/golem.dm b/code/modules/mob/living/carbon/human/species/station/golem.dm index 0820fa140fa..0523da6f417 100644 --- a/code/modules/mob/living/carbon/human/species/station/golem.dm +++ b/code/modules/mob/living/carbon/human/species/station/golem.dm @@ -1,20 +1,22 @@ -var/global/list/golem_types = list(SPECIES_GOLEM_COAL, - SPECIES_GOLEM_IRON, - SPECIES_GOLEM_BRONZE, - SPECIES_GOLEM_STEEL, - SPECIES_GOLEM_PLASTEEL, - SPECIES_GOLEM_TITANIUM, - SPECIES_GOLEM_CLOTH, - SPECIES_GOLEM_CARDBOARD, - SPECIES_GOLEM_GLASS, - SPECIES_GOLEM_PHORON, - SPECIES_GOLEM_HYDROGEN, - SPECIES_GOLEM_WOOD, - SPECIES_GOLEM_DIAMOND, - SPECIES_GOLEM_SAND, - SPECIES_GOLEM_URANIUM, - SPECIES_GOLEM_MEAT, - SPECIES_GOLEM_ADAMANTINE) +var/global/list/golem_types = list( + SPECIES_GOLEM_COAL, + SPECIES_GOLEM_IRON, + SPECIES_GOLEM_BRONZE, + SPECIES_GOLEM_STEEL, + SPECIES_GOLEM_PLASTEEL, + SPECIES_GOLEM_TITANIUM, + SPECIES_GOLEM_CLOTH, + SPECIES_GOLEM_CARDBOARD, + SPECIES_GOLEM_GLASS, + SPECIES_GOLEM_PHORON, + SPECIES_GOLEM_HYDROGEN, + SPECIES_GOLEM_WOOD, + SPECIES_GOLEM_DIAMOND, + SPECIES_GOLEM_SAND, + SPECIES_GOLEM_URANIUM, + SPECIES_GOLEM_MEAT, + SPECIES_GOLEM_ADAMANTINE + ) /datum/species/golem name = SPECIES_GOLEM_COAL diff --git a/code/modules/mob/living/carbon/human/species/station/ipc/ipc_subspecies.dm b/code/modules/mob/living/carbon/human/species/station/ipc/ipc_subspecies.dm index a4f5212d4b7..e8fa78dfc46 100644 --- a/code/modules/mob/living/carbon/human/species/station/ipc/ipc_subspecies.dm +++ b/code/modules/mob/living/carbon/human/species/station/ipc/ipc_subspecies.dm @@ -16,8 +16,8 @@ blurb = "IPCs with humanlike properties. Their focus is on service, civilian, and medical, but there are no \ job restrictions. Created in the late days of 2450, the Shell is a controversial IPC model equipped with a synthskin weave applied over its metal chassis \ to create an uncannily close approximation of the organic form. Early models of Shell had the advantage of being able to compose themselves of a wide \ - variety of organic parts, but contemporary models have been restricted to a single species for the sake of prosthetic integrity. The additional weight of \ - the synthskin on the original Hephaestus frame reduces the efficacy of the unit's already strained coolant systems, and increases charge consumption." + variety of organic parts, but contemporary models have been restricted to a single species for the sake of prosthetic integrity. The additional weight of \ + the synthskin on the original Hephaestus frame reduces the efficacy of the unit's already strained coolant systems, and increases charge consumption." num_alternate_languages = 3 diff --git a/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm b/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm index 0c31c8d0440..6c0e7eaaf84 100644 --- a/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm +++ b/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm @@ -105,14 +105,14 @@ ) has_organ = list( - BP_BRAIN = /obj/item/organ/internal/brain/unathi, - BP_HEART = /obj/item/organ/internal/heart/unathi, - BP_LIVER = /obj/item/organ/internal/liver/unathi, - BP_LUNGS = /obj/item/organ/internal/lungs/unathi, - BP_KIDNEYS = /obj/item/organ/internal/kidneys/unathi, - BP_STOMACH = /obj/item/organ/internal/stomach/unathi, - BP_EYES = /obj/item/organ/internal/eyes/unathi - ) + BP_BRAIN = /obj/item/organ/internal/brain/unathi, + BP_HEART = /obj/item/organ/internal/heart/unathi, + BP_LIVER = /obj/item/organ/internal/liver/unathi, + BP_LUNGS = /obj/item/organ/internal/lungs/unathi, + BP_KIDNEYS = /obj/item/organ/internal/kidneys/unathi, + BP_STOMACH = /obj/item/organ/internal/stomach/unathi, + BP_EYES = /obj/item/organ/internal/eyes/unathi + ) alterable_internal_organs = list(BP_HEART, BP_EYES, BP_LUNGS, BP_LIVER, BP_KIDNEYS, BP_STOMACH) diff --git a/code/modules/mob/living/carbon/human/stripping.dm b/code/modules/mob/living/carbon/human/stripping.dm index b0c0a7a32d8..314a6309dcb 100644 --- a/code/modules/mob/living/carbon/human/stripping.dm +++ b/code/modules/mob/living/carbon/human/stripping.dm @@ -88,7 +88,7 @@ // Are we placing or stripping? var/stripping = target_slot var/obj/item/held = user.get_active_hand() - + if(stripping) if(!target_slot.canremove) to_chat(user, "You cannot remove \the [src]'s [target_slot.name].") diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 420a7273d52..c7cd9bcf62a 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -29,9 +29,9 @@ var/mob/living/next_point_time = 0 /*one proc, four uses swapping: if it's 1, the mobs are trying to switch, if 0, non-passive is pushing passive default behaviour is: - - non-passive mob passes the passive version - - passive mob checks to see if its mob_bump_flag is in the non-passive's mob_bump_flags - - if si, the proc returns + - non-passive mob passes the passive version + - passive mob checks to see if its mob_bump_flag is in the non-passive's mob_bump_flags + - if si, the proc returns */ /mob/living/proc/can_move_mob(var/mob/living/swapped, swapping = 0, passive = 0) if(!swapped) diff --git a/code/modules/mob/living/logout.dm b/code/modules/mob/living/logout.dm index 21da512c90c..ceb24e9c21f 100644 --- a/code/modules/mob/living/logout.dm +++ b/code/modules/mob/living/logout.dm @@ -1,6 +1,6 @@ /mob/living/Logout() ..() - if (mind) + if (mind) //Per BYOND docs key remains set if the player DCs, becomes null if switching bodies. - if(!key) //key and mind have become seperated. + if(!key) //key and mind have become seperated. mind.active = 0 //This is to stop say, a mind.transfer_to call on a corpse causing a ghost to re-enter its body. diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 6f518abde9a..18272513ae9 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -1,65 +1,65 @@ var/list/department_radio_keys = list( - ":r" = "right ear", ".r" = "right ear", - ":l" = "left ear", ".l" = "left ear", - ":i" = "intercom", ".i" = "intercom", - ":h" = "department", ".h" = "department", - ":+" = "special", ".+" = "special", //activate radio-specific special functions - ":a" = "Common", ".a" = "Common", - ":c" = "Command", ".c" = "Command", - ":n" = "Science", ".n" = "Science", - ":m" = "Medical", ".m" = "Medical", - ":e" = "Engineering", ".e" = "Engineering", - ":s" = "Security", ".s" = "Security", - ":q" = "Penal", ".q" = "Penal", - ":w" = "whisper", ".w" = "whisper", - ":t" = "Mercenary", ".t" = "Mercenary", - ":x" = "Raider", ".x" = "Raider", - ":b" = "Burglar", ".b" = "Burglar", - ":j" = "Bluespace", ".j" = "Bluespace", - ":y" = "Hailing", ".y" = "Hailing", - ":q" = "Ninja", ".q" = "Ninja", - ":u" = "Operations", ".u" = "Operations", - ":v" = "Service", ".v" = "Service", - ":p" = "AI Private", ".p" = "AI Private", - ":z" = "Entertainment",".z" = "Entertainment", - - ":R" = "right ear", ".R" = "right ear", - ":L" = "left ear", ".L" = "left ear", - ":I" = "intercom", ".I" = "intercom", - ":H" = "department", ".H" = "department", - ":A" = "Common", ".A" = "Common", - ":C" = "Command", ".C" = "Command", - ":N" = "Science", ".N" = "Science", - ":M" = "Medical", ".M" = "Medical", - ":E" = "Engineering", ".E" = "Engineering", - ":S" = "Security", ".S" = "Security", - ":Q" = "Penal", ".Q" = "Penal", - ":W" = "whisper", ".W" = "whisper", - ":T" = "Mercenary", ".T" = "Mercenary", - ":X" = "Raider", ".X" = "Raider", - ":B" = "Burglar", ".B" = "Burglar", - ":J" = "Bluespace", ".J" = "Bluespace", - ":Y" = "Hailing", ".Y" = "Hailing", - ":Q" = "Ninja", ".Q" = "Ninja", - ":U" = "Operations", ".U" = "Operations", - ":V" = "Service", ".V" = "Service", - ":P" = "AI Private", ".P" = "AI Private", - ":Z" = "Entertainment",".Z" = "Entertainment", - - //kinda localization -- rastaf0 - //same keys as above, but on russian keyboard layout. This file uses cp1251 as encoding. - ":ê" = "right ear", ".ê" = "right ear", - ":ä" = "left ear", ".ä" = "left ear", - ":ø" = "intercom", ".ø" = "intercom", - ":ð" = "department", ".ð" = "department", - ":ñ" = "Command", ".ñ" = "Command", - ":ò" = "Science", ".ò" = "Science", - ":ü" = "Medical", ".ü" = "Medical", - ":ó" = "Engineering", ".ó" = "Engineering", - ":û" = "Security", ".û" = "Security", - ":ö" = "whisper", ".ö" = "whisper", - ":å" = "Mercenary", ".å" = "Mercenary", - ":é" = "Operations", ".é" = "Operations" + ":r" = "right ear", ".r" = "right ear", + ":l" = "left ear", ".l" = "left ear", + ":i" = "intercom", ".i" = "intercom", + ":h" = "department", ".h" = "department", + ":+" = "special", ".+" = "special", //activate radio-specific special functions + ":a" = "Common", ".a" = "Common", + ":c" = "Command", ".c" = "Command", + ":n" = "Science", ".n" = "Science", + ":m" = "Medical", ".m" = "Medical", + ":e" = "Engineering", ".e" = "Engineering", + ":s" = "Security", ".s" = "Security", + ":q" = "Penal", ".q" = "Penal", + ":w" = "whisper", ".w" = "whisper", + ":t" = "Mercenary", ".t" = "Mercenary", + ":x" = "Raider", ".x" = "Raider", + ":b" = "Burglar", ".b" = "Burglar", + ":j" = "Bluespace", ".j" = "Bluespace", + ":y" = "Hailing", ".y" = "Hailing", + ":q" = "Ninja", ".q" = "Ninja", + ":u" = "Operations", ".u" = "Operations", + ":v" = "Service", ".v" = "Service", + ":p" = "AI Private", ".p" = "AI Private", + ":z" = "Entertainment",".z" = "Entertainment", + + ":R" = "right ear", ".R" = "right ear", + ":L" = "left ear", ".L" = "left ear", + ":I" = "intercom", ".I" = "intercom", + ":H" = "department", ".H" = "department", + ":A" = "Common", ".A" = "Common", + ":C" = "Command", ".C" = "Command", + ":N" = "Science", ".N" = "Science", + ":M" = "Medical", ".M" = "Medical", + ":E" = "Engineering", ".E" = "Engineering", + ":S" = "Security", ".S" = "Security", + ":Q" = "Penal", ".Q" = "Penal", + ":W" = "whisper", ".W" = "whisper", + ":T" = "Mercenary", ".T" = "Mercenary", + ":X" = "Raider", ".X" = "Raider", + ":B" = "Burglar", ".B" = "Burglar", + ":J" = "Bluespace", ".J" = "Bluespace", + ":Y" = "Hailing", ".Y" = "Hailing", + ":Q" = "Ninja", ".Q" = "Ninja", + ":U" = "Operations", ".U" = "Operations", + ":V" = "Service", ".V" = "Service", + ":P" = "AI Private", ".P" = "AI Private", + ":Z" = "Entertainment",".Z" = "Entertainment", + + //kinda localization -- rastaf0 + //same keys as above, but on russian keyboard layout. This file uses cp1251 as encoding. + ":ê" = "right ear", ".ê" = "right ear", + ":ä" = "left ear", ".ä" = "left ear", + ":ø" = "intercom", ".ø" = "intercom", + ":ð" = "department", ".ð" = "department", + ":ñ" = "Command", ".ñ" = "Command", + ":ò" = "Science", ".ò" = "Science", + ":ü" = "Medical", ".ü" = "Medical", + ":ó" = "Engineering", ".ó" = "Engineering", + ":û" = "Security", ".û" = "Security", + ":ö" = "whisper", ".ö" = "whisper", + ":å" = "Mercenary", ".å" = "Mercenary", + ":é" = "Operations", ".é" = "Operations" ) diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 1d7c36f9fa2..9874f70cfef 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -356,8 +356,8 @@ var/list/ai_verbs_default = list( To use something, simply click on it.\ AI Shell\As an AI, you have access to an unique, inhabitable AI shell that spawns behind your core.\ - This construct can be used in a variety of ways, but its primary function is to be a role play tool to give you the ability to have an actual physical presence on the station.\ - The shell is an extension of you, which means your laws apply to it aswell.\ + This construct can be used in a variety of ways, but its primary function is to be a role play tool to give you the ability to have an actual physical presence on the station.\ + The shell is an extension of you, which means your laws apply to it aswell.\ \OOC Notes\Please remember that as an AI you can heavily skew the game in your (and thus usually the crew's) favour. \
diff --git a/code/modules/mob/living/silicon/ai/latejoin.dm b/code/modules/mob/living/silicon/ai/latejoin.dm
index 04a2f416774..0879dd71f21 100644
--- a/code/modules/mob/living/silicon/ai/latejoin.dm
+++ b/code/modules/mob/living/silicon/ai/latejoin.dm
@@ -38,11 +38,11 @@ var/global/list/empty_playable_ai_cores = list()
if(SSticker.mode && SSticker.mode.name == "AI malfunction")
to_chat(usr, "You cannot use this verb in malfunction. If you need to leave, please adminhelp.")
return
-
+
if(carded)
to_chat(usr, "No connection to station intelligence storage. You must be in an AI Core to store yourself (adminhelp if you need to leave).")
return
-
+
// Guard against misclicks, this isn't the sort of thing we want happening accidentally
if(alert("WARNING: This will immediately wipe your core and ghost you, removing your character from the round permanently (similar to cryo and robotic storage). Are you entirely sure you want to do this?",
"Wipe Core", "No", "No", "Yes") != "Yes")
diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm
index d37698ef3b8..cfb23373938 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone.dm
@@ -150,7 +150,7 @@
return all_languages[LANGUAGE_LOCAL_DRONE]
/mob/living/silicon/robot/drone/fall_impact()
- ..(damage_mod = 0.25) //reduces fall damage by 75%
+ ..(damage_mod = 0.25) //reduces fall damage by 75%
/mob/living/silicon/robot/drone/construction
// Look and feel
diff --git a/code/modules/mob/living/silicon/robot/drone/drone_items.dm b/code/modules/mob/living/silicon/robot/drone/drone_items.dm
index 3eb5150bd55..ffbe0f68b63 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone_items.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone_items.dm
@@ -129,7 +129,7 @@
to_chat(D, SPAN_WARNING("You need to remain still while decompiling such a large object."))
is_decompiling = FALSE
return
-
+
is_decompiling = FALSE
if(!M || !D)
return
@@ -159,10 +159,10 @@
if(istype(victim, /mob/living/simple_animal/borer) && M.stat != DEAD)
to_chat(user, SPAN_WARNING("You can't seem to get \the [victim] into your [name]!"))
return
-
+
//We're good to crunch them up
var/turf/T = get_turf(src)
- T.visible_message(SPAN_DANGER("\The [user] sucks \the [victim] into its decompiler. There's a horrible crunching noise."),
+ T.visible_message(SPAN_DANGER("\The [user] sucks \the [victim] into its decompiler. There's a horrible crunching noise."),
SPAN_NOTICE("It's a bit of a struggle, but you manage to suck \the [victim] into your decompiler. It makes a series of visceral crunching noises."))
new /obj/effect/decal/cleanable/blood/splatter(get_turf(src))
playsound(get_turf(user), 'sound/effects/squelch1.ogg')
diff --git a/code/modules/mob/living/silicon/robot/inventory.dm b/code/modules/mob/living/silicon/robot/inventory.dm
index 3a8fc5946b4..539aa65eb2d 100644
--- a/code/modules/mob/living/silicon/robot/inventory.dm
+++ b/code/modules/mob/living/silicon/robot/inventory.dm
@@ -265,7 +265,7 @@
uneq_active()
/mob/living/silicon/robot/drop_from_inventory(var/obj/item/W, var/atom/target = null)
- var/do_feedback = target ? FALSE : TRUE //Do not do feedback messages if dropping to a target, to avoid duplicate "You release X" messages.
+ var/do_feedback = target ? FALSE : TRUE //Do not do feedback messages if dropping to a target, to avoid duplicate "You release X" messages.
if(W)
if(!target)
target = loc
diff --git a/code/modules/mob/living/silicon/robot/robot_damage.dm b/code/modules/mob/living/silicon/robot/robot_damage.dm
index 9ee0cbbf9f1..35024a59384 100644
--- a/code/modules/mob/living/silicon/robot/robot_damage.dm
+++ b/code/modules/mob/living/silicon/robot/robot_damage.dm
@@ -74,7 +74,7 @@
if(!length(components))
return
- //Combat shielding absorbs a percentage of damage directly into the cell.
+ //Combat shielding absorbs a percentage of damage directly into the cell.
if(module_active && istype(module_active, /obj/item/borg/combat/shield))
var/obj/item/borg/combat/shield/shield = module_active
//Shields absorb a certain percentage of damage based on their power setting.
@@ -121,7 +121,7 @@
return
var/list/datum/robot_component/parts = get_damageable_components()
- //Combat shielding absorbs a percentage of damage directly into the cell.
+ //Combat shielding absorbs a percentage of damage directly into the cell.
if(module_active && istype(module_active,/obj/item/borg/combat/shield))
var/obj/item/borg/combat/shield/shield = module_active
//Shields absorb a certain percentage of damage based on their power setting.
diff --git a/code/modules/mob/living/simple_animal/bees.dm b/code/modules/mob/living/simple_animal/bees.dm
index a4dc271436f..917aaa6d6e1 100644
--- a/code/modules/mob/living/simple_animal/bees.dm
+++ b/code/modules/mob/living/simple_animal/bees.dm
@@ -100,7 +100,7 @@
M.apply_damage(min(strength*0.85,2)+mut, DAMAGE_BURN, damage_flags = DAMAGE_FLAG_SHARP) // Stinging. The more mutated I am, the harder I sting.
var/venom_strength = max(strength*0.2, (round(feral/10,1) * (max(round(strength/20,1), 1)))) + toxic // Bee venom based on how angry I am and how many there are of me!
M.apply_damage(venom_strength, DAMAGE_PAIN) //Bee venom causes pain, not organ failure
- if(prob(max(80, strength * 10))) //If there's enough of a swarm, it can also cause breathing trouble. Yes, even without being allergic.
+ if(prob(max(80, strength * 10))) //If there's enough of a swarm, it can also cause breathing trouble. Yes, even without being allergic.
M.apply_damage(venom_strength, DAMAGE_OXY)
update_icon()
to_chat(M, "You have been stung!")
@@ -290,4 +290,4 @@
/mob/living/simple_animal/bee/beegun/Initialize()
. = ..()
mut = rand(0, 1) //We're creating bees out of energy. They have a chance of being mutated...
- toxic = rand(0, 1) //...or slightly more toxic
\ No newline at end of file
+ toxic = rand(0, 1) //...or slightly more toxic
diff --git a/code/modules/mob/living/simple_animal/borer/emote.dm b/code/modules/mob/living/simple_animal/borer/emote.dm
index 8078db41095..db4ea4b93f8 100644
--- a/code/modules/mob/living/simple_animal/borer/emote.dm
+++ b/code/modules/mob/living/simple_animal/borer/emote.dm
@@ -1,6 +1,6 @@
/mob/living/simple_animal/borer/send_emote(var/message, var/type)
- if(host)
- if(host.stat == CONSCIOUS)
- host.show_message(message, type)
- else
- ..()
+ if(host)
+ if(host.stat == CONSCIOUS)
+ host.show_message(message, type)
+ else
+ ..()
diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm
index b3c00f919b9..cad97e1c3d8 100644
--- a/code/modules/mob/living/simple_animal/friendly/cat.dm
+++ b/code/modules/mob/living/simple_animal/friendly/cat.dm
@@ -246,10 +246,15 @@
audible_emote(pick("[verb] in distress.", "[verb] anxiously."))
else
if (prob(5))
- visible_emote(pick("nuzzles [friend].",
- "brushes against [friend].",
- "rubs against [friend].",
- "purrs."),0)
+ var/emote = pick(
+ "nuzzles [friend].",
+ "brushes against [friend].",
+ "rubs against [friend].",
+ "purrs.",
+ )
+
+ visible_emote(emote, 0)
+
else if (friend.health <= 50)
if (prob(10))
var/verb = pick("meows", "mews", "mrowls")
diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/exoplanet.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/exoplanet.dm
index d2184f7be65..5700373afdd 100644
--- a/code/modules/mob/living/simple_animal/hostile/retaliate/exoplanet.dm
+++ b/code/modules/mob/living/simple_animal/hostile/retaliate/exoplanet.dm
@@ -50,7 +50,7 @@
laser = ARMOR_LASER_PISTOL
)
-/mob/living/simple_animal/hostile/retaliate/beast/charbaby/on_attack_mob(var/mob/hit_mob)
+/mob/living/simple_animal/hostile/retaliate/beast/charbaby/on_attack_mob(var/mob/hit_mob)
. = ..()
if(isliving(hit_mob) && prob(25))
var/mob/living/L = hit_mob
@@ -68,4 +68,4 @@
icon_living = "lavadog"
icon_dead = "lavadog_dead"
- speak = list("Karuph!", "Karump!")
\ No newline at end of file
+ speak = list("Karuph!", "Karump!")
diff --git a/code/modules/mob/living/simple_animal/hostile/space_fauna.dm b/code/modules/mob/living/simple_animal/hostile/space_fauna.dm
index 4eb9e70332a..71b31c46fdc 100644
--- a/code/modules/mob/living/simple_animal/hostile/space_fauna.dm
+++ b/code/modules/mob/living/simple_animal/hostile/space_fauna.dm
@@ -105,9 +105,9 @@
health = 50
/mob/living/simple_animal/hostile/carp/russian/FindTarget()
- . = ..()
- if(.)
- custom_emote(VISIBLE_MESSAGE,"spots a filthy capitalist!")
+ . = ..()
+ if(.)
+ custom_emote(VISIBLE_MESSAGE,"spots a filthy capitalist!")
/mob/living/simple_animal/hostile/carp/asteroid
icon_state = "carp_asteroid"
diff --git a/code/modules/mob/living/simple_animal/illusion.dm b/code/modules/mob/living/simple_animal/illusion.dm
index 96009a782c9..c025dce664f 100644
--- a/code/modules/mob/living/simple_animal/illusion.dm
+++ b/code/modules/mob/living/simple_animal/illusion.dm
@@ -25,7 +25,7 @@
/mob/living/simple_animal/illusion/Destroy()
copying = null
- return ..()
+ return ..()
// Because we can't perfectly duplicate some examine() output, we directly examine the AM it is copying. It's messy but
// this is to prevent easy checks from the opposing force.
diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm
index 6a74e5d9224..986fc4f1e95 100644
--- a/code/modules/mob/living/simple_animal/parrot.dm
+++ b/code/modules/mob/living/simple_animal/parrot.dm
@@ -100,10 +100,12 @@
parrot_sleep_dur = parrot_sleep_max //In case someone decides to change the max without changing the duration var
- verbs.Add(/mob/living/simple_animal/parrot/proc/steal_from_ground, \
- /mob/living/simple_animal/parrot/proc/steal_from_mob, \
- /mob/living/simple_animal/parrot/verb/drop_held_item_player, \
- /mob/living/simple_animal/parrot/proc/perch_player)
+ verbs.Add(
+ /mob/living/simple_animal/parrot/proc/steal_from_ground, \
+ /mob/living/simple_animal/parrot/proc/steal_from_mob, \
+ /mob/living/simple_animal/parrot/verb/drop_held_item_player, \
+ /mob/living/simple_animal/parrot/proc/perch_player
+ )
/mob/living/simple_animal/parrot/Destroy()
QDEL_NULL(ears)
@@ -288,9 +290,9 @@
//-----SPEECH
/* Parrot speech mimickry!
- Phrases that the parrot hears in mob/living/say() get added to speach_buffer.
- Every once in a while, the parrot picks one of the lines from the buffer and replaces an element of the 'speech' list.
- Then it clears the buffer to make sure they dont magically remember something from hours ago. */
+ Phrases that the parrot hears in mob/living/say() get added to speach_buffer.
+ Every once in a while, the parrot picks one of the lines from the buffer and replaces an element of the 'speech' list.
+ Then it clears the buffer to make sure they dont magically remember something from hours ago. */
if(speech_buffer.len && prob(10))
if(speak.len)
speak.Remove(pick(speak))
diff --git a/code/modules/mob/living/whisper.dm b/code/modules/mob/living/whisper.dm
index 043702cd488..1baf666e8c3 100644
--- a/code/modules/mob/living/whisper.dm
+++ b/code/modules/mob/living/whisper.dm
@@ -74,7 +74,7 @@
else if(get_dist(src, M) <= watching_range)
if(M.stat == DEAD && M.client)
observers += M
- else
+ else
watching += M
if(length(observers)) //For ghosts who do NOT have ghost ears. They will see the whole message if nearby, no *s or not_heard messages.
diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm
index c362362da64..c04e1b9098c 100644
--- a/code/modules/mob/say.dm
+++ b/code/modules/mob/say.dm
@@ -86,12 +86,12 @@
return FALSE
/*
- ***Deprecated***
- let this be handled at the hear_say or hear_radio proc
- This is left in for robot speaking when humans gain binary channel access until I get around to rewriting
- robot_talk() proc.
- There is no language handling build into it however there is at the /mob level so we accept the call
- for it but just ignore it.
+ ***Deprecated***
+ let this be handled at the hear_say or hear_radio proc
+ This is left in for robot speaking when humans gain binary channel access until I get around to rewriting
+ robot_talk() proc.
+ There is no language handling build into it however there is at the /mob level so we accept the call
+ for it but just ignore it.
*/
/mob/proc/say_quote(var/message, var/datum/language/speaking = null, var/singing = FALSE, var/whisper = FALSE)
diff --git a/code/modules/modular_computers/NTNet/NTNRC/message.dm b/code/modules/modular_computers/NTNet/NTNRC/message.dm
index 62f06d0b950..97efbafe82c 100644
--- a/code/modules/modular_computers/NTNet/NTNRC/message.dm
+++ b/code/modules/modular_computers/NTNet/NTNRC/message.dm
@@ -1,96 +1,96 @@
// Container for all essesal state for NTRC message while it's proccessed
/datum/ntnet_message
- var/mob/user
- var/datum/computer_file/program/chat_client/client
- var/datum/ntnet_user/nuser
- var/play_sound = FALSE
+ var/mob/user
+ var/datum/computer_file/program/chat_client/client
+ var/datum/ntnet_user/nuser
+ var/play_sound = FALSE
/datum/ntnet_message/New(var/datum/computer_file/program/chat_client/Pr = null, var/mob/user = null)
- if(user)
- src.user = user
- if(Pr)
- client = Pr
- nuser = Pr.my_user
+ if(user)
+ src.user = user
+ if(Pr)
+ client = Pr
+ nuser = Pr.my_user
// Should be sanitized
/datum/ntnet_message/proc/format_chat_notification(var/datum/ntnet_conversation/Conv, var/datum/computer_file/program/chat_client/Cl)
- return FALSE
+ return FALSE
/datum/ntnet_message/proc/format_admin_log(var/datum/ntnet_conversation/Conv)
- return FALSE
+ return FALSE
// Should be sanitized
/datum/ntnet_message/proc/format_ntnet_log(var/datum/ntnet_conversation/Conv)
- return FALSE
+ return FALSE
/datum/ntnet_message/proc/format_chat_log(var/datum/ntnet_conversation/Conv)
- return FALSE
+ return FALSE
/datum/ntnet_message/message
- play_sound = TRUE
- var/message = ""
+ play_sound = TRUE
+ var/message = ""
/datum/ntnet_message/message/format_chat_notification(var/datum/ntnet_conversation/Conv, var/datum/computer_file/program/chat_client/Cl)
- . = "([sanitize(Conv.get_title(Cl))]) [nuser.username]: [sanitize(message)] (Reply)"
+ . = "([sanitize(Conv.get_title(Cl))]) [nuser.username]: [sanitize(message)] (Reply)"
/datum/ntnet_message/message/format_chat_log(var/datum/ntnet_conversation/Conv)
- . = "[worldtime2text()] [nuser.username]: [message]"
+ . = "[worldtime2text()] [nuser.username]: [message]"
/datum/ntnet_message/message/format_admin_log(var/datum/ntnet_conversation/Conv)
- . = message
+ . = message
/datum/ntnet_message/message/format_ntnet_log(var/datum/ntnet_conversation/Conv)
- . = "[sanitize(Conv.get_title())] [nuser.username]: [sanitize(message)]"
+ . = "[sanitize(Conv.get_title())] [nuser.username]: [sanitize(message)]"
/datum/ntnet_message/join/format_chat_notification(var/datum/ntnet_conversation/Conv, var/datum/computer_file/program/chat_client/Cl)
- . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has entered the chat.")
+ . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has entered the chat.")
/datum/ntnet_message/join/format_chat_log(var/datum/ntnet_conversation/Conv)
- . = "[worldtime2text()] -!- [nuser.username] has entered the chat."
+ . = "[worldtime2text()] -!- [nuser.username] has entered the chat."
/datum/ntnet_message/leave/format_chat_notification(var/datum/ntnet_conversation/Conv, var/datum/computer_file/program/chat_client/Cl)
- . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has left the chat.")
+ . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has left the chat.")
/datum/ntnet_message/leave/format_chat_log(var/datum/ntnet_conversation/Conv)
- . = "[worldtime2text()] -!- [nuser.username] has left the chat."
+ . = "[worldtime2text()] -!- [nuser.username] has left the chat."
/datum/ntnet_message/new_op/format_chat_log(var/datum/ntnet_conversation/Conv)
- . = "[worldtime2text()] -!- [nuser.username] has become operator."
+ . = "[worldtime2text()] -!- [nuser.username] has become operator."
/datum/ntnet_message/new_title
- var/title = ""
+ var/title = ""
/datum/ntnet_message/new_title/format_chat_log(var/datum/ntnet_conversation/Conv)
- . = "[worldtime2text()] -!- [nuser.username] has changed channel title from [Conv.get_title()] to [title]"
+ . = "[worldtime2text()] -!- [nuser.username] has changed channel title from [Conv.get_title()] to [title]"
/datum/ntnet_message/new_title/format_chat_notification(var/datum/ntnet_conversation/Conv, var/datum/computer_file/program/chat_client/Cl)
- . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has changed the channel title to [sanitize(title)].")
+ . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has changed the channel title to [sanitize(title)].")
/datum/ntnet_message/kick
- var/datum/ntnet_user/target
+ var/datum/ntnet_user/target
/datum/ntnet_message/kick/format_chat_log(var/datum/ntnet_conversation/Conv)
- . = "[worldtime2text()] -!- [nuser.username] has kicked [target.username] from conversation."
+ . = "[worldtime2text()] -!- [nuser.username] has kicked [target.username] from conversation."
/datum/ntnet_message/kick/format_chat_notification(var/datum/ntnet_conversation/Conv, var/datum/computer_file/program/chat_client/Cl)
- . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has kicked [target.username] from conversation.")
+ . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has kicked [target.username] from conversation.")
/datum/ntnet_message/direct/format_chat_log(var/datum/ntnet_conversation/Conv)
- . = "[worldtime2text()] -!- [nuser.username] has opened direct conversation."
+ . = "[worldtime2text()] -!- [nuser.username] has opened direct conversation."
/datum/ntnet_message/direct/format_chat_notification(var/datum/ntnet_conversation/Conv, var/datum/computer_file/program/chat_client/Cl)
- . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has opened direct conversation with you.")
+ . = FONT_SMALL("([sanitize(Conv.get_title(Cl))]) [nuser.username] has opened direct conversation with you.")
diff --git a/code/modules/modular_computers/NTNet/NTNRC/ntnrc.dm b/code/modules/modular_computers/NTNet/NTNRC/ntnrc.dm
index 3163339a631..ec2258273be 100644
--- a/code/modules/modular_computers/NTNet/NTNRC/ntnrc.dm
+++ b/code/modules/modular_computers/NTNet/NTNRC/ntnrc.dm
@@ -15,7 +15,7 @@
/datum/ntnet/proc/begin_direct(var/datum/computer_file/program/chat_client/Cl, var/datum/ntnet_user/target)
if(!istype(Cl) || !istype(Cl.my_user) || !istype(target) || istype(Cl.my_user.dm_channels[target], /datum/ntnet_conversation))
return
-
+
var/datum/ntnet_conversation/Conv = new()
Conv.direct = TRUE
Conv.users.Add(Cl.my_user)
@@ -23,6 +23,6 @@
target.dm_channels[Cl.my_user] = Conv
Cl.my_user.dm_channels[target] = Conv
-
+
var/datum/ntnet_message/direct/msg = new(Cl)
Conv.process_message(msg)
diff --git a/code/modules/modular_computers/NTNet/NTNRC/user.dm b/code/modules/modular_computers/NTNet/NTNRC/user.dm
index 56e06762766..d6215baf624 100644
--- a/code/modules/modular_computers/NTNet/NTNRC/user.dm
+++ b/code/modules/modular_computers/NTNet/NTNRC/user.dm
@@ -1,16 +1,16 @@
/datum/ntnet_user
- var/username
- var/list/channels = list()
- var/list/dm_channels = list()
- var/list/clients = list()
+ var/username
+ var/list/channels = list()
+ var/list/dm_channels = list()
+ var/list/clients = list()
/datum/ntnet_user/New()
- . = ..()
- ntnet_global.chat_users.Add(src)
+ . = ..()
+ ntnet_global.chat_users.Add(src)
/datum/ntnet_user/Destroy(force)
- . = ..()
- ntnet_global.chat_users.Remove(src)
+ . = ..()
+ ntnet_global.chat_users.Remove(src)
/datum/ntnet_user/proc/generateUsernameIdCard(var/obj/item/card/id/card)
if(!card)
diff --git a/code/modules/modular_computers/NTNet/NTNet_relay.dm b/code/modules/modular_computers/NTNet/NTNet_relay.dm
index 9f2004c73e6..08981e114ba 100644
--- a/code/modules/modular_computers/NTNet/NTNet_relay.dm
+++ b/code/modules/modular_computers/NTNet/NTNet_relay.dm
@@ -70,10 +70,10 @@
..()
/obj/machinery/ntnet_relay/ui_interact(mob/user, datum/tgui/ui)
- ui = SStgui.try_update_ui(user, src, ui)
- if(!ui)
- ui = new(user, src, "NTNetRelay")
- ui.open()
+ ui = SStgui.try_update_ui(user, src, ui)
+ if(!ui)
+ ui = new(user, src, "NTNetRelay")
+ ui.open()
/obj/machinery/ntnet_relay/ui_data(mob/user)
var/list/data = list()
diff --git a/code/modules/modular_computers/computers/modular_computer/core.dm b/code/modules/modular_computers/computers/modular_computer/core.dm
index 63cefe651ea..b61f41848fd 100644
--- a/code/modules/modular_computers/computers/modular_computer/core.dm
+++ b/code/modules/modular_computers/computers/modular_computer/core.dm
@@ -504,23 +504,23 @@
// A late init operation called in SSshuttle for ship computers and holopads, used to attach the thing to the right ship.
/obj/item/modular_computer/proc/attempt_hook_up(var/obj/effect/overmap/visitable/sector)
- SHOULD_CALL_PARENT(TRUE)
- if(!istype(sector))
- return FALSE
- if(sector.check_ownership(src))
- linked = sector
- return TRUE
- return FALSE
+ SHOULD_CALL_PARENT(TRUE)
+ if(!istype(sector))
+ return FALSE
+ if(sector.check_ownership(src))
+ linked = sector
+ return TRUE
+ return FALSE
/obj/item/modular_computer/proc/sync_linked()
- var/obj/effect/overmap/visitable/sector = map_sectors["[z]"]
- if(!sector)
- return
- return attempt_hook_up_recursive(sector)
+ var/obj/effect/overmap/visitable/sector = map_sectors["[z]"]
+ if(!sector)
+ return
+ return attempt_hook_up_recursive(sector)
/obj/item/modular_computer/proc/attempt_hook_up_recursive(var/obj/effect/overmap/visitable/sector)
- if(attempt_hook_up(sector))
- return sector
- for(var/obj/effect/overmap/visitable/candidate in sector)
- if((. = .(candidate)))
- return
+ if(attempt_hook_up(sector))
+ return sector
+ for(var/obj/effect/overmap/visitable/candidate in sector)
+ if((. = .(candidate)))
+ return
diff --git a/code/modules/modular_computers/file_system/program_events.dm b/code/modules/modular_computers/file_system/program_events.dm
index a0d469ae79b..9b03b8d6369 100644
--- a/code/modules/modular_computers/file_system/program_events.dm
+++ b/code/modules/modular_computers/file_system/program_events.dm
@@ -36,7 +36,7 @@
/datum/computer_file/program/proc/service_enable()
return service_activate()
-// Is called when program service is being deactivated without
+// Is called when program service is being deactivated without
/datum/computer_file/program/proc/service_disable()
return service_deactivate()
@@ -68,4 +68,4 @@
if(background)
computer.output_error(FONT_SMALL(SPAN_WARNING("Process [filename].[filetype] (PID [rand(100,999)]) terminated - Network Error")))
else
- computer.output_error(FONT_SMALL(SPAN_WARNING("NETWORK ERROR - NTNet connection lost. Please retry. If problem persists contact your system administrator.")))
\ No newline at end of file
+ computer.output_error(FONT_SMALL(SPAN_WARNING("NETWORK ERROR - NTNet connection lost. Please retry. If problem persists contact your system administrator.")))
diff --git a/code/modules/modular_computers/file_system/programs/command/away_manifest.dm b/code/modules/modular_computers/file_system/programs/command/away_manifest.dm
index 47db7bc3e53..f827843b0bf 100644
--- a/code/modules/modular_computers/file_system/programs/command/away_manifest.dm
+++ b/code/modules/modular_computers/file_system/programs/command/away_manifest.dm
@@ -14,7 +14,7 @@
/datum/computer_file/program/away_manifest/ui_data(mob/user)
var/list/data = list()
-
+
if(active_record)
data["active_record"] = list(
"name" = active_record.name,
@@ -32,29 +32,29 @@
data["shuttle_manifest"] = allshuttles
data["active_record"] = null
return data
-
+
/datum/computer_file/program/away_manifest/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
. = ..()
if(.)
return
-
+
switch(action)
if("am_menu")
. = TRUE
active_record = null
SStgui.update_uis(computer)
-
+
if("editentry")
for(var/datum/record/shuttle_manifest/m in SSrecords.shuttle_manifests)
if(m.id == text2num(params["editentry"]))
active_record = m
break
-
+
if("back")
. = TRUE
active_record = null
SStgui.update_uis(computer)
-
+
//Check ID for command/mining/research access to edit
if(!istype(usr))
return
@@ -62,7 +62,7 @@
if(!istype(I) || !I.registered_name || issilicon(usr) || (!(access_heads in I.access) && !(access_research in I.access) && !(access_mining in I.access)))
to_chat(usr, SPAN_WARNING("Authentication error: Unable to locate ID with appropriate access to allow this operation."))
return
-
+
switch(action)
if("addentry")
. = TRUE
@@ -71,19 +71,19 @@
m.name = "Unknown"
m.shuttle = "Unknown"
active_record = m
-
+
if("saveentry")
. = TRUE
SSrecords.update_record(active_record)
active_record = null
SStgui.update_uis(computer)
-
+
if("deleteentry")
. = TRUE
SSrecords.remove_record(active_record)
active_record = null
SStgui.update_uis(computer)
-
+
if("editentryname")
. = TRUE
var/names = list()
@@ -94,7 +94,7 @@
if(!newname)
return
active_record.name = newname
-
+
if("editentrynamecustom")
. = TRUE
var/newname = sanitize(input("Please enter name.") as null|text)
@@ -109,4 +109,3 @@
if(!newshuttle)
return
active_record.shuttle = newshuttle
-
\ No newline at end of file
diff --git a/code/modules/modular_computers/file_system/programs/generic/scanner.dm b/code/modules/modular_computers/file_system/programs/generic/scanner.dm
index a15d14708fa..ee624813b4b 100644
--- a/code/modules/modular_computers/file_system/programs/generic/scanner.dm
+++ b/code/modules/modular_computers/file_system/programs/generic/scanner.dm
@@ -1,46 +1,46 @@
/datum/computer_file/program/scanner
- size = 2
- program_type = PROGRAM_SERVICE
- available_on_ntnet = FALSE
- usage_flags = PROGRAM_ALL_HANDHELD
- var/mode = null
+ size = 2
+ program_type = PROGRAM_SERVICE
+ available_on_ntnet = FALSE
+ usage_flags = PROGRAM_ALL_HANDHELD
+ var/mode = null
/datum/computer_file/program/scanner/service_activate()
- . = ..()
- if(!computer.scan_mode)
- computer.scan_mode = mode
- return TRUE
- else
- computer.visible_message(SPAN_WARNING("Cannot activate [filedesc]: Another scanner is already active!"))
- return FALSE
+ . = ..()
+ if(!computer.scan_mode)
+ computer.scan_mode = mode
+ return TRUE
+ else
+ computer.visible_message(SPAN_WARNING("Cannot activate [filedesc]: Another scanner is already active!"))
+ return FALSE
/datum/computer_file/program/scanner/service_deactivate()
- . = ..()
- computer.scan_mode = null
+ . = ..()
+ computer.scan_mode = null
/datum/computer_file/program/scanner/medical
- filename = "med_scanner"
- filedesc = "Medical Analyzer"
- extended_desc = "A scanning suite capable of detecting major medical problems in individuals."
- available_on_ntnet = TRUE
- required_access_run = access_medical
- required_access_download = access_medical
- mode = SCANNER_MEDICAL
+ filename = "med_scanner"
+ filedesc = "Medical Analyzer"
+ extended_desc = "A scanning suite capable of detecting major medical problems in individuals."
+ available_on_ntnet = TRUE
+ required_access_run = access_medical
+ required_access_download = access_medical
+ mode = SCANNER_MEDICAL
/datum/computer_file/program/scanner/science
- filename = "sci_scanner"
- filedesc = "Reagent Analyzer"
- extended_desc = "A scanning suite capable of detecting active chemical reagents."
- available_on_ntnet = TRUE
- required_access_run = access_research
- required_access_download = access_research
- mode = SCANNER_REAGENT
+ filename = "sci_scanner"
+ filedesc = "Reagent Analyzer"
+ extended_desc = "A scanning suite capable of detecting active chemical reagents."
+ available_on_ntnet = TRUE
+ required_access_run = access_research
+ required_access_download = access_research
+ mode = SCANNER_REAGENT
/datum/computer_file/program/scanner/gas
- filename = "gas_scanner"
- filedesc = "Gas Analyzer"
- extended_desc = "A scanning suite capable of detecting and parsing gaseous conditions within a closed atmospheric system."
- available_on_ntnet = TRUE
- required_access_run = list(access_atmospherics, access_research)
- required_access_download = list(access_atmospherics, access_research)
- mode = SCANNER_GAS
+ filename = "gas_scanner"
+ filedesc = "Gas Analyzer"
+ extended_desc = "A scanning suite capable of detecting and parsing gaseous conditions within a closed atmospheric system."
+ available_on_ntnet = TRUE
+ required_access_run = list(access_atmospherics, access_research)
+ required_access_download = list(access_atmospherics, access_research)
+ mode = SCANNER_GAS
diff --git a/code/modules/modular_computers/file_system/programs/pai/flashlight.dm b/code/modules/modular_computers/file_system/programs/pai/flashlight.dm
index 66becba88ba..1bff930142a 100644
--- a/code/modules/modular_computers/file_system/programs/pai/flashlight.dm
+++ b/code/modules/modular_computers/file_system/programs/pai/flashlight.dm
@@ -12,7 +12,7 @@
if(!istype(computer, /obj/item/modular_computer/silicon))
return FALSE
-
+
var/obj/item/modular_computer/silicon/true_computer = computer
if(!istype(true_computer.computer_host, /mob/living/silicon/pai))
return FALSE
@@ -32,4 +32,4 @@
return
var/mob/living/silicon/pai/host = true_computer.computer_host
- host.toggle_flashlight()
\ No newline at end of file
+ host.toggle_flashlight()
diff --git a/code/modules/modular_computers/hardware/misc.dm b/code/modules/modular_computers/hardware/misc.dm
index 016f7966985..a3a76c14130 100644
--- a/code/modules/modular_computers/hardware/misc.dm
+++ b/code/modules/modular_computers/hardware/misc.dm
@@ -1,26 +1,26 @@
/obj/item/computer_hardware/flashlight
- name = "flashlight"
- desc = "A small pen-sized flashlight used to illuminate a small area."
- icon = 'icons/obj/lighting.dmi'
- icon_state = "headlights"
- power_usage = 50
- enabled = FALSE
- critical = FALSE
- var/range = 2
- var/power = 1
- var/flashlight_color = LIGHT_COLOR_HALOGEN
+ name = "flashlight"
+ desc = "A small pen-sized flashlight used to illuminate a small area."
+ icon = 'icons/obj/lighting.dmi'
+ icon_state = "headlights"
+ power_usage = 50
+ enabled = FALSE
+ critical = FALSE
+ var/range = 2
+ var/power = 1
+ var/flashlight_color = LIGHT_COLOR_HALOGEN
/obj/item/computer_hardware/flashlight/enable()
- . = ..()
- if(parent_computer)
- parent_computer.set_light(range, power, flashlight_color)
+ . = ..()
+ if(parent_computer)
+ parent_computer.set_light(range, power, flashlight_color)
/obj/item/computer_hardware/flashlight/disable()
- . = ..()
- if(parent_computer)
- parent_computer.set_light(initial(parent_computer.light_range), initial(parent_computer.light_power), flashlight_color)
+ . = ..()
+ if(parent_computer)
+ parent_computer.set_light(initial(parent_computer.light_range), initial(parent_computer.light_power), flashlight_color)
/obj/item/computer_hardware/flashlight/proc/tweak_brightness(var/new_power)
- . = power = Clamp(0, new_power, 1)
- if(parent_computer && enabled)
- parent_computer.set_light(range, power, flashlight_color)
+ . = power = Clamp(0, new_power, 1)
+ if(parent_computer && enabled)
+ parent_computer.set_light(range, power, flashlight_color)
diff --git a/code/modules/multiz/basic.dm b/code/modules/multiz/basic.dm
index 5b36e81de55..cd82b7c1245 100644
--- a/code/modules/multiz/basic.dm
+++ b/code/modules/multiz/basic.dm
@@ -52,7 +52,7 @@ var/list/list/connected_z_cache = list()
/proc/AreConnectedZLevels(var/zA, var/zB)
if (zA == zB)
return TRUE
-
+
if(zA == 0 || zB == 0)
return FALSE
diff --git a/code/modules/nano/nanoexternal.dm b/code/modules/nano/nanoexternal.dm
index 2cbab52cf09..678c3811a6f 100644
--- a/code/modules/nano/nanoexternal.dm
+++ b/code/modules/nano/nanoexternal.dm
@@ -1,12 +1,10 @@
- // This file contains all Nano procs/definitions for external classes/objects
+// This file contains all Nano procs/definitions for external classes/objects
- /**
- * Called when a Nano UI window is closed
- * This is how Nano handles closed windows
- * It must be a verb so that it can be called using winset
- *
- * @return nothing
- */
+/**
+ * Called when a Nano UI window is closed
+ * This is how Nano handles closed windows
+ * It must be a verb so that it can be called using winset
+ */
/client/verb/nanoclose(var/uiref as text)
set hidden = 1 // hide this verb from the user's panel
set name = "nanoclose"
@@ -25,18 +23,16 @@
if(src && src.mob)
src.mob.unset_machine()
- /**
- * The ui_interact proc is used to open and update Nano UIs
- * If ui_interact is not used then the UI will not update correctly
- * ui_interact is currently defined for /atom/movable
- *
- * @param user /mob The mob who is interacting with this ui
- * @param ui_key string A string key to use for this ui. Allows for multiple unique uis on one obj/mob (defaut value "main")
- * @param ui /datum/nanoui This parameter is passed by the nanoui process() proc when updating an open ui
- * @param force_open boolean Force the UI to (re)open, even if it's already open
- *
- * @return nothing
- */
+/**
+ * The ui_interact proc is used to open and update Nano UIs
+ * If ui_interact is not used then the UI will not update correctly
+ * ui_interact is currently defined for /atom/movable
+ *
+ * @param user /mob The mob who is interacting with this ui
+ * @param ui_key string A string key to use for this ui. Allows for multiple unique uis on one obj/mob (defaut value "main")
+ * @param ui /datum/nanoui This parameter is passed by the nanoui process() proc when updating an open ui
+ * @param force_open boolean Force the UI to (re)open, even if it's already open
+ */
/datum/proc/nanoui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1, var/datum/nanoui/master_ui = null, var/datum/ui_state/state = default_state)
return
diff --git a/code/modules/nano/nanoui.dm b/code/modules/nano/nanoui.dm
index 379d933f707..233361a614f 100644
--- a/code/modules/nano/nanoui.dm
+++ b/code/modules/nano/nanoui.dm
@@ -57,20 +57,20 @@ nanoui is used to open and update nano browser uis
var/list/datum/nanoui/children = list()
var/datum/ui_state/state = null
- /**
- * Create a new nanoui instance.
- *
- * @param nuser /mob The mob who has opened/owns this ui
- * @param nsrc_object /obj|/mob The obj or mob which this ui belongs to
- * @param nui_key string A string key to use for this ui. Allows for multiple unique uis on one src_oject
- * @param ntemplate string The filename of the template file from /nano/templates (e.g. "my_template.tmpl")
- * @param ntitle string The title of this ui
- * @param nwidth int the width of the ui window
- * @param nheight int the height of the ui window
- * @param nref /atom A custom ref to use if "on_close_logic" is set to 1
- *
- * @return /nanoui new nanoui object
- */
+/**
+ * Create a new nanoui instance.
+ *
+ * @param nuser /mob The mob who has opened/owns this ui
+ * @param nsrc_object /obj|/mob The obj or mob which this ui belongs to
+ * @param nui_key string A string key to use for this ui. Allows for multiple unique uis on one src_oject
+ * @param ntemplate string The filename of the template file from /nano/templates (e.g. "my_template.tmpl")
+ * @param ntitle string The title of this ui
+ * @param nwidth int the width of the ui window
+ * @param nheight int the height of the ui window
+ * @param nref /atom A custom ref to use if "on_close_logic" is set to 1
+ *
+ * @return /nanoui new nanoui object
+ */
/datum/nanoui/New(nuser, nsrc_object, nui_key, ntemplate_filename, ntitle = 0, nwidth = 0, nheight = 0, var/atom/nref = null, var/datum/nanoui/master_ui = null, var/datum/ui_state/state = default_state)
user = nuser
src_object = nsrc_object
@@ -101,11 +101,11 @@ nanoui is used to open and update nano browser uis
- /**
- * Use this proc to add assets which are common to (and required by) all nano uis
- *
- * @return nothing
- */
+/**
+ * Use this proc to add assets which are common to (and required by) all nano uis
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/add_common_assets()
add_script("https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js")
add_script("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js")
@@ -120,14 +120,14 @@ nanoui is used to open and update nano browser uis
add_stylesheet("shared.css") // this CSS sheet is common to all UIs
add_stylesheet("icons.css") // this CSS sheet is common to all UIs
- /**
- * Set the current status (also known as visibility) of this ui.
- *
- * @param state int The status to set, see the defines at the top of this file
- * @param push_update int (bool) Push an update to the ui to update it's status (an update is always sent if the status has changed to red (0))
- *
- * @return nothing
- */
+/**
+ * Set the current status (also known as visibility) of this ui.
+ *
+ * @param state int The status to set, see the defines at the top of this file
+ * @param push_update int (bool) Push an update to the ui to update it's status (an update is always sent if the status has changed to red (0))
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/set_status(state, push_update)
if (state != status) // Only update if it is different
if (status == STATUS_DISABLED)
@@ -139,13 +139,13 @@ nanoui is used to open and update nano browser uis
if (push_update || status == 0)
push_data(null, 1) // Update the UI, force the update in case the status is 0, data is null so that previous data is used
- /**
- * Update the status (visibility) of this ui based on the user's status
- *
- * @param push_update int (bool) Push an update to the ui to update it's status. This is set to 0/false if an update is going to be pushed anyway (to avoid unnessary updates)
- *
- * @return nothing
- */
+/**
+ * Update the status (visibility) of this ui based on the user's status
+ *
+ * @param push_update int (bool) Push an update to the ui to update it's status. This is set to 0/false if an update is going to be pushed anyway (to avoid unnessary updates)
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/update_status(var/push_update = 0)
var/obj/host = src_object.ui_host()
var/new_status = host.CanUseTopic(user, state)
@@ -156,31 +156,31 @@ nanoui is used to open and update nano browser uis
if(new_status == STATUS_CLOSE)
close()
- /**
- * Set the ui to auto update (every master_controller tick)
- *
- * @param state int (bool) Set auto update to 1 or 0 (true/false)
- *
- * @return nothing
- */
+/**
+ * Set the ui to auto update (every master_controller tick)
+ *
+ * @param state int (bool) Set auto update to 1 or 0 (true/false)
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/set_auto_update(nstate = 1)
is_auto_updating = nstate
- /**
- * Set the initial data for the ui. This is vital as the data structure set here cannot be changed when pushing new updates.
- *
- * @param data /list The list of data for this ui
- *
- * @return nothing
- */
+/**
+ * Set the initial data for the ui. This is vital as the data structure set here cannot be changed when pushing new updates.
+ *
+ * @param data /list The list of data for this ui
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/set_initial_data(list/data)
initial_data = data
- /**
- * Get config data to sent to the ui.
- *
- * @return /list config data
- */
+/**
+ * Get config data to sent to the ui.
+ *
+ * @return /list config data
+ */
/datum/nanoui/proc/get_config_data()
var/name = "[src_object]"
name = sanitize(name)
@@ -199,13 +199,13 @@ nanoui is used to open and update nano browser uis
)
return config_data
- /**
- * Get data to sent to the ui.
- *
- * @param data /list The list of general data for this ui (can be null to use previous data sent)
- *
- * @return /list data to send to the ui
- */
+/**
+ * Get data to sent to the ui.
+ *
+ * @param data /list The list of general data for this ui (can be null to use previous data sent)
+ *
+ * @return /list data to send to the ui
+ */
/datum/nanoui/proc/get_send_data(var/list/data)
var/list/config_data = get_config_data()
@@ -216,130 +216,130 @@ nanoui is used to open and update nano browser uis
return send_data
- /**
- * Set the browser window options for this ui
- *
- * @param nwindow_options string The new window options
- *
- * @return nothing
- */
+/**
+ * Set the browser window options for this ui
+ *
+ * @param nwindow_options string The new window options
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/set_window_options(nwindow_options)
window_options = nwindow_options
- /**
- * Add a CSS stylesheet to this UI
- * These must be added before the UI has been opened, adding after that will have no effect
- *
- * @param file string The name of the CSS file from /nano/css (e.g. "my_style.css")
- *
- * @return nothing
- */
+/**
+ * Add a CSS stylesheet to this UI
+ * These must be added before the UI has been opened, adding after that will have no effect
+ *
+ * @param file string The name of the CSS file from /nano/css (e.g. "my_style.css")
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/add_stylesheet(file)
stylesheets.Add(file)
- /**
- * Add a JavsScript script to this UI
- * These must be added before the UI has been opened, adding after that will have no effect
- *
- * @param file string The name of the JavaScript file from /nano/js (e.g. "my_script.js")
- *
- * @return nothing
- */
+/**
+ * Add a JavsScript script to this UI
+ * These must be added before the UI has been opened, adding after that will have no effect
+ *
+ * @param file string The name of the JavaScript file from /nano/js (e.g. "my_script.js")
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/add_script(file)
scripts.Add(file)
- /**
- * Add a template for this UI
- * Templates are combined with the data sent to the UI to create the rendered view
- * These must be added before the UI has been opened, adding after that will have no effect
- *
- * @param key string The key which is used to reference this template in the frontend
- * @param filename string The name of the template file from /nano/templates (e.g. "my_template.tmpl")
- *
- * @return nothing
- */
+/**
+ * Add a template for this UI
+ * Templates are combined with the data sent to the UI to create the rendered view
+ * These must be added before the UI has been opened, adding after that will have no effect
+ *
+ * @param key string The key which is used to reference this template in the frontend
+ * @param filename string The name of the template file from /nano/templates (e.g. "my_template.tmpl")
+ *
+ * @return nothing
+ */
/datum/nanoui/proc/add_template(key, filename)
templates[key] = filename
- /**
- * Set the layout key for use in the frontend Javascript
- * The layout key is the basic layout key for the page
- * Two files are loaded on the client based on the layout key varable:
- * -> a template in /nano/templates with the filename "layout_ |