mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 21:10:30 +01:00
OpenDream linting (#16468)
* I wanna set the universe on fire * dfsaaf * setup * dir issue? * dsf * Perhaps the script * saf * cry * pain * sdfas * Try reintroduction of tag-matcher * Failed * Tries to suppress dotnet compile warnings * Like this maybe? * woopsie * Damn pathings * Hate * Pragmas * unlint? * Maybe? * GDI * Redundant ifdef removed and changelog * Did I forgot the tag matcher, or it was still broken? * Yea no that script is still broken * Removed tag-matcher as requested * *sigh* * test * bro what? * hope * just fixing the input * Let's see if we catch it...
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
switch(dir)
|
||||
if(SOUTH)
|
||||
layer = ABOVE_MOB_LAYER
|
||||
else if(NORTH)
|
||||
if(NORTH)
|
||||
layer = initial(layer) - 0.01
|
||||
else
|
||||
layer = initial(layer)
|
||||
|
||||
@@ -15,7 +15,6 @@ var/global/list/total_active_bonfires = list()
|
||||
var/max_fuel = 2000
|
||||
var/on_fire = FALSE
|
||||
var/safe = FALSE
|
||||
var/obj/machinery/appliance/bonfire/cook_machine
|
||||
var/list/burnable_materials = list(MATERIAL_WOOD = 200, MATERIAL_WOOD_LOG = 400, MATERIAL_WOOD_BRANCH = 40, MATERIAL_COTTON = 20, MATERIAL_CLOTH = 50, MATERIAL_CARPET = 20, MATERIAL_CARDBOARD = 35)
|
||||
var/list/burnable_other = list(/obj/item/ore/coal = 750, /obj/item/torch = 20) //For items without material/default material
|
||||
var/heat_range = 5 //Range in which it will heat other people
|
||||
@@ -385,4 +384,4 @@ var/global/list/total_active_bonfires = list()
|
||||
return !density
|
||||
return TRUE
|
||||
|
||||
#undef MAX_ACTIVE_BONFIRE_LIMIT
|
||||
#undef MAX_ACTIVE_BONFIRE_LIMIT
|
||||
|
||||
@@ -414,7 +414,7 @@
|
||||
screwed = FALSE
|
||||
else if(!screwed && wrenched)
|
||||
to_chat(user, SPAN_NOTICE("You start to screw the \the [src] to the floor..."))
|
||||
playsound(src, 'sound/items/welder.ogg', 80, 1)
|
||||
playsound(src, 'sound/items/Welder.ogg', 80, 1)
|
||||
if (do_after(user, 15/W.toolspeed SECONDS, act_target = src))
|
||||
to_chat(user, SPAN_NOTICE("You screw \the [src]!"))
|
||||
playsound(loc, W.usesound, 50, 1)
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
return
|
||||
else
|
||||
health -= rand(40,80)
|
||||
else
|
||||
|
||||
if(health <= 0)
|
||||
harvest()
|
||||
return
|
||||
|
||||
@@ -258,7 +258,7 @@
|
||||
to_chat(user, SPAN_WARNING("\The [src]'s wires cannot be reached, take out the electronics first."))
|
||||
return
|
||||
|
||||
playsound(src.loc, 'sound/items/wirecutter.ogg', 100, 1)
|
||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
user.visible_message("<b>[user]</b> starts cutting the wires from the airlock assembly.", SPAN_NOTICE("You start cutting the wires from airlock assembly."))
|
||||
|
||||
if(W.use_tool(src, user, 40, volume = 50))
|
||||
@@ -277,7 +277,7 @@
|
||||
return
|
||||
var/obj/item/airlock_electronics/EL = W
|
||||
if(!EL.is_installed)
|
||||
playsound(src.loc, 'sound/items/screwdriver.ogg', 100, 1)
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
user.visible_message("<b>[user]</b> starts installing \the [EL] into the airlock assembly.", SPAN_NOTICE("You start installing \the [EL] into the airlock assembly."))
|
||||
EL.is_installed = TRUE
|
||||
if(W.use_tool(src, user, 40, volume = 50) && state == STATE_WIRED)
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
if(!WT.isOn())
|
||||
to_chat(user, SPAN_NOTICE("\The [WT] isn't turned on."))
|
||||
return
|
||||
playsound(src, 'sound/items/welder.ogg', 50, TRUE)
|
||||
playsound(src, 'sound/items/Welder.ogg', 50, TRUE)
|
||||
user.visible_message(
|
||||
SPAN_WARNING("\The [user] starts welding \the [src] apart!"),
|
||||
SPAN_NOTICE("You start welding \the [src] apart..."),
|
||||
|
||||
@@ -301,7 +301,6 @@
|
||||
return
|
||||
else
|
||||
health -= rand(40,80)
|
||||
else
|
||||
|
||||
if(health <= 0)
|
||||
dismantle()
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
/obj/structure/grille/attackby(obj/item/W, mob/user)
|
||||
if(W.iswirecutter())
|
||||
if(!shock(user, 100))
|
||||
playsound(loc, 'sound/items/wirecutter.ogg', 100, 1)
|
||||
playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
new /obj/item/stack/rods(get_turf(src), destroyed ? 1 : 2)
|
||||
qdel(src)
|
||||
else if(istype(W, /obj/item/gun/energy/plasmacutter))
|
||||
@@ -112,7 +112,7 @@
|
||||
qdel(src)
|
||||
else if((W.isscrewdriver()) && (istype(loc, /turf/simulated) || anchored))
|
||||
if(!shock(user, 90))
|
||||
playsound(loc, 'sound/items/screwdriver.ogg', 100, 1)
|
||||
playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
anchored = !anchored
|
||||
user.visible_message("<span class='notice'>[user] [anchored ? "fastens" : "unfastens"] the grille.</span>", \
|
||||
"<span class='notice'>You have [anchored ? "fastened the grille to" : "unfastened the grill from"] the floor.</span>")
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
var/obj/item/stack/rods/R = C
|
||||
if (R.use(2))
|
||||
to_chat(user, "<span class='notice'>Constructing catwalk ...</span>")
|
||||
playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
|
||||
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
|
||||
new /obj/structure/lattice/catwalk(src.loc)
|
||||
qdel(src)
|
||||
return
|
||||
@@ -164,7 +164,7 @@
|
||||
var/obj/item/weldingtool/WT = C
|
||||
if(C.use_tool(src, user, 5, volume = 50) && WT.use(1, user))
|
||||
to_chat(user, SPAN_NOTICE("You slice apart the [src] leaving nothing useful behind."))
|
||||
playsound(src, 'sound/items/welder.ogg', 50, 1)
|
||||
playsound(src, 'sound/items/Welder.ogg', 50, 1)
|
||||
qdel(src)
|
||||
else
|
||||
..()
|
||||
|
||||
@@ -275,9 +275,9 @@
|
||||
desperation = rand(1,5)
|
||||
switch(desperation) //This is messy. A better solution would probably be to make more sounds, but...
|
||||
if(1)
|
||||
playsound(src.loc, 'sound/weapons/genhit.ogg', 45, 1)
|
||||
playsound(src.loc, 'sound/weapons/Genhit.ogg', 45, 1)
|
||||
shake_animation(2)
|
||||
playsound(src.loc, 'sound/weapons/genhit.ogg', 45, 1)
|
||||
playsound(src.loc, 'sound/weapons/Genhit.ogg', 45, 1)
|
||||
if(2)
|
||||
playsound(src.loc, 'sound/effects/grillehit.ogg', 45, 1)
|
||||
shake_animation(3)
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
to_chat(user, "\The [src] has no padding to remove.")
|
||||
return
|
||||
to_chat(user, "You remove the padding from \the [src].")
|
||||
playsound(src, 'sound/items/wirecutter.ogg', 100, 1)
|
||||
playsound(src, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
painted_colour = null
|
||||
remove_padding()
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
else
|
||||
anchored = TRUE
|
||||
to_chat(user, "You fasten \the [src] to the floor.")
|
||||
playsound(src, 'sound/items/screwdriver.ogg', 100, 1)
|
||||
playsound(src, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
|
||||
else if(istype(W, /obj/item/grab))
|
||||
var/obj/item/grab/G = W
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
//Removing wire from the assembly. Step 5 undone.
|
||||
if(W.iswirecutter() && !src.electronics)
|
||||
playsound(src.loc, 'sound/items/wirecutter.ogg', 100, 1)
|
||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
user.visible_message("[user] cuts the wires from the airlock assembly.", "You start to cut the wires from airlock assembly.")
|
||||
|
||||
if(W.use_tool(src, user, 40, volume = 50))
|
||||
@@ -168,7 +168,7 @@
|
||||
else if(istype(W, /obj/item/airlock_electronics) && W:icon_state != "door_electronics_smoked")
|
||||
var/obj/item/airlock_electronics/EL = W
|
||||
if(!EL.is_installed)
|
||||
playsound(src.loc, 'sound/items/screwdriver.ogg', 100, 1)
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
user.visible_message("[user] installs the electronics into the airlock assembly.", "You start to install electronics into the airlock assembly.")
|
||||
EL.is_installed = 1
|
||||
if(do_after(user, 40))
|
||||
|
||||
Reference in New Issue
Block a user