mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Grep for space indentation (#54850)
#54604 atomizing Since a lot of the space indents are in lists ill atomize those later
This commit is contained in:
@@ -175,8 +175,8 @@
|
||||
return
|
||||
new /obj/item/stack/sheet/cloth(user.drop_location())
|
||||
user.visible_message("<span class='notice'>[user] cuts [src] into pieces of cloth with [I].</span>", \
|
||||
"<span class='notice'>You cut [src] into pieces of cloth with [I].</span>", \
|
||||
"<span class='hear'>You hear cutting.</span>")
|
||||
"<span class='notice'>You cut [src] into pieces of cloth with [I].</span>", \
|
||||
"<span class='hear'>You hear cutting.</span>")
|
||||
use(2)
|
||||
else
|
||||
return ..()
|
||||
|
||||
@@ -60,8 +60,8 @@ GLOBAL_LIST_INIT(rod_recipes, list ( \
|
||||
if(W.use_tool(src, user, 0, volume=40))
|
||||
var/obj/item/stack/sheet/metal/new_item = new(usr.loc)
|
||||
user.visible_message("<span class='notice'>[user.name] shaped [src] into metal with [W].</span>", \
|
||||
"<span class='notice'>You shape [src] into metal with [W].</span>", \
|
||||
"<span class='hear'>You hear welding.</span>")
|
||||
"<span class='notice'>You shape [src] into metal with [W].</span>", \
|
||||
"<span class='hear'>You hear welding.</span>")
|
||||
var/obj/item/stack/rods/R = src
|
||||
src = null
|
||||
var/replace = (user.get_inactive_held_item()==R)
|
||||
|
||||
@@ -210,9 +210,8 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( \
|
||||
. = ..()
|
||||
. += GLOB.sinew_recipes
|
||||
|
||||
/*
|
||||
* Plates
|
||||
*/
|
||||
|
||||
/*Plates*/
|
||||
/obj/item/stack/sheet/animalhide/goliath_hide
|
||||
name = "goliath hide plates"
|
||||
desc = "Pieces of a goliath's rocky hide, these might be able to make your suit a bit more durable to attack from the local fauna."
|
||||
|
||||
@@ -75,17 +75,17 @@
|
||||
update_icon()
|
||||
|
||||
/** Sets the amount of materials per unit for this stack.
|
||||
*
|
||||
* Arguments:
|
||||
* - [mats][/list]: The value to set the mats per unit to.
|
||||
* - multiplier: The amount to multiply the mats per unit by. Defaults to 1.
|
||||
*/
|
||||
*
|
||||
* Arguments:
|
||||
* - [mats][/list]: The value to set the mats per unit to.
|
||||
* - multiplier: The amount to multiply the mats per unit by. Defaults to 1.
|
||||
*/
|
||||
/obj/item/stack/proc/set_mats_per_unit(list/mats, multiplier=1)
|
||||
mats_per_unit = SSmaterials.FindOrCreateMaterialCombo(mats, multiplier)
|
||||
update_custom_materials()
|
||||
|
||||
/** Updates the custom materials list of this stack.
|
||||
*/
|
||||
*/
|
||||
/obj/item/stack/proc/update_custom_materials()
|
||||
set_custom_materials(mats_per_unit, amount)
|
||||
|
||||
@@ -147,11 +147,11 @@
|
||||
. = (amount)
|
||||
|
||||
/**
|
||||
* Builds all recipes in a given recipe list and returns an association list containing them
|
||||
*
|
||||
* Arguments:
|
||||
* * recipe_to_iterate - The list of recipes we are using to build recipes
|
||||
*/
|
||||
* Builds all recipes in a given recipe list and returns an association list containing them
|
||||
*
|
||||
* Arguments:
|
||||
* * recipe_to_iterate - The list of recipes we are using to build recipes
|
||||
*/
|
||||
/obj/item/stack/proc/recursively_build_recipes(list/recipe_to_iterate)
|
||||
var/list/L = list()
|
||||
for(var/recipe in recipe_to_iterate)
|
||||
@@ -164,11 +164,11 @@
|
||||
return L
|
||||
|
||||
/**
|
||||
* Returns a list of properties of a given recipe
|
||||
*
|
||||
* Arguments:
|
||||
* * R - The stack recipe we are using to get a list of properties
|
||||
*/
|
||||
* Returns a list of properties of a given recipe
|
||||
*
|
||||
* Arguments:
|
||||
* * R - The stack recipe we are using to get a list of properties
|
||||
*/
|
||||
/obj/item/stack/proc/build_recipe(datum/stack_recipe/R)
|
||||
return list(
|
||||
"res_amount" = R.res_amount,
|
||||
@@ -178,12 +178,12 @@
|
||||
)
|
||||
|
||||
/**
|
||||
* Checks if the recipe is valid to be used
|
||||
*
|
||||
* Arguments:
|
||||
* * R - The stack recipe we are checking if it is valid
|
||||
* * recipe_list - The list of recipes we are using to check the given recipe
|
||||
*/
|
||||
* Checks if the recipe is valid to be used
|
||||
*
|
||||
* Arguments:
|
||||
* * R - The stack recipe we are checking if it is valid
|
||||
* * recipe_list - The list of recipes we are using to check the given recipe
|
||||
*/
|
||||
/obj/item/stack/proc/is_valid_recipe(datum/stack_recipe/R, list/recipe_list)
|
||||
for(var/S in recipe_list)
|
||||
if(S == R)
|
||||
@@ -381,10 +381,10 @@
|
||||
return FALSE
|
||||
|
||||
/** Adds some number of units to this stack.
|
||||
*
|
||||
* Arguments:
|
||||
* - _amount: The number of units to add to this stack.
|
||||
*/
|
||||
*
|
||||
* Arguments:
|
||||
* - _amount: The number of units to add to this stack.
|
||||
*/
|
||||
/obj/item/stack/proc/add(_amount)
|
||||
if (is_cyborg)
|
||||
source.add_charge(_amount * cost)
|
||||
@@ -396,10 +396,10 @@
|
||||
update_weight()
|
||||
|
||||
/** Checks whether this stack can merge itself into another stack.
|
||||
*
|
||||
* Arguments:
|
||||
* - [check][/obj/item/stack]: The stack to check for mergeability.
|
||||
*/
|
||||
*
|
||||
* Arguments:
|
||||
* - [check][/obj/item/stack]: The stack to check for mergeability.
|
||||
*/
|
||||
/obj/item/stack/proc/can_merge(obj/item/stack/check)
|
||||
if(!istype(check, merge_type))
|
||||
return FALSE
|
||||
@@ -458,11 +458,11 @@
|
||||
to_chat(user, "<span class='notice'>You take [stackmaterial] sheets out of the stack.</span>")
|
||||
|
||||
/** Splits the stack into two stacks.
|
||||
*
|
||||
* Arguments:
|
||||
* - [user][/mob]: The mob splitting the stack.
|
||||
* - amount: The number of units to split from this stack.
|
||||
*/
|
||||
*
|
||||
* Arguments:
|
||||
* - [user][/mob]: The mob splitting the stack.
|
||||
* - amount: The number of units to split from this stack.
|
||||
*/
|
||||
/obj/item/stack/proc/split_stack(mob/user, amount)
|
||||
if(!use(amount, TRUE, FALSE))
|
||||
return null
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
GLOBAL_LIST_EMPTY(tile_reskin_lists)
|
||||
|
||||
/**
|
||||
* Caches associative lists with type path index keys and images of said type's initial icon state (typepath -> image).
|
||||
*/
|
||||
* Caches associative lists with type path index keys and images of said type's initial icon state (typepath -> image).
|
||||
*/
|
||||
/obj/item/stack/tile/proc/tile_reskin_list(list/values)
|
||||
var/string_id = values.Join("-")
|
||||
. = GLOB.tile_reskin_lists[string_id]
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
if (mineralType == "metal")
|
||||
var/obj/item/stack/sheet/metal/new_item = new(user.loc)
|
||||
user.visible_message("<span class='notice'>[user.name] shaped [src] into metal with the welding tool.</span>", \
|
||||
"<span class='notice'>You shaped [src] into metal with the welding tool.</span>", \
|
||||
"<span class='hear'>You hear welding.</span>")
|
||||
"<span class='notice'>You shaped [src] into metal with the welding tool.</span>", \
|
||||
"<span class='hear'>You hear welding.</span>")
|
||||
var/obj/item/stack/rods/R = src
|
||||
src = null
|
||||
var/replace = (user.get_inactive_held_item()==R)
|
||||
@@ -83,8 +83,8 @@
|
||||
var/sheet_type = text2path("/obj/item/stack/sheet/mineral/[mineralType]")
|
||||
var/obj/item/stack/sheet/mineral/new_item = new sheet_type(user.loc)
|
||||
user.visible_message("<span class='notice'>[user.name] shaped [src] into a sheet with the welding tool.</span>", \
|
||||
"<span class='notice'>You shaped [src] into a sheet with the welding tool.</span>", \
|
||||
"<span class='hear'>You hear welding.</span>")
|
||||
"<span class='notice'>You shaped [src] into a sheet with the welding tool.</span>", \
|
||||
"<span class='hear'>You hear welding.</span>")
|
||||
var/obj/item/stack/rods/R = src
|
||||
src = null
|
||||
var/replace = (user.get_inactive_held_item()==R)
|
||||
|
||||
Reference in New Issue
Block a user