mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +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:
@@ -451,7 +451,7 @@
|
||||
"<span class='warning'>[user] begins cutting cable restrains on zipper of [src].</span>",
|
||||
"<span class='notice'>You begin cutting cable restrains on zipper of [src].</span>"
|
||||
)
|
||||
playsound(loc, 'sound/items/wirecutter.ogg', 50, 1)
|
||||
playsound(loc, 'sound/items/Wirecutter.ogg', 50, 1)
|
||||
if (!do_after(user, 3 SECONDS, act_target = src, extra_checks = CALLBACK(src, PROC_REF(is_closed))))
|
||||
return TRUE
|
||||
zipped = !zipped
|
||||
|
||||
@@ -268,14 +268,14 @@
|
||||
if (!isturf(NT) || (NT in found) || (NT in pending))
|
||||
continue
|
||||
|
||||
switch(check_tile_is_border(NT,dir))
|
||||
if(BORDER_NONE)
|
||||
pending+=NT
|
||||
if(BORDER_BETWEEN)
|
||||
//do nothing, may be later i'll add 'rejected' list as optimization
|
||||
if(BORDER_2NDTILE)
|
||||
found+=NT //tile included to new area, but we dont seek more
|
||||
if(BORDER_SPACE)
|
||||
return ROOM_ERR_SPACE
|
||||
var/tile_is_border = check_tile_is_border(NT,dir)
|
||||
if(tile_is_border != BORDER_BETWEEN)
|
||||
switch(tile_is_border)
|
||||
if(BORDER_NONE)
|
||||
pending+=NT
|
||||
if(BORDER_2NDTILE)
|
||||
found+=NT //tile included to new area, but we dont seek more
|
||||
if(BORDER_SPACE)
|
||||
return ROOM_ERR_SPACE
|
||||
found+=T
|
||||
return found
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
return TRUE
|
||||
else if(W.iswirecutter())
|
||||
to_chat(user, "You cut the tag off the bodybag.")
|
||||
playsound(src.loc, 'sound/items/wirecutter.ogg', 50, 1)
|
||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
|
||||
src.name = "body bag"
|
||||
LAZYREMOVE(overlays, image(icon, "bodybag_label"))
|
||||
return TRUE
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
|
||||
if(usr.incapacitated())
|
||||
return
|
||||
var/new_colour = input(usr, "Choose a colour.", "paintgun", paint_colour) as color|anything in preset_colors
|
||||
var/new_colour = input(usr, "Choose a colour.", "paintgun", paint_colour) as null|anything in preset_colors
|
||||
if(new_colour && new_colour != paint_colour)
|
||||
paint_colour = preset_colors[new_colour]
|
||||
to_chat(usr, "<span class='notice'>You set \the [src] to paint with <font color='[paint_colour]'>a new colour</font>.</span>")
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
/obj/item/device/multitool/hacktool/attackby(var/obj/item/W, var/mob/user)
|
||||
if(W.isscrewdriver())
|
||||
in_hack_mode = !in_hack_mode
|
||||
playsound(src.loc, 'sound/items/screwdriver.ogg', 50, TRUE)
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, TRUE)
|
||||
return TRUE
|
||||
else
|
||||
return ..()
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
addtimer(CALLBACK(GLOBAL_PROC, /proc/playsound, loc, "sound/effects/sparks[rand(1,4)].ogg", 30, 1), 3, TIMER_CLIENT_TIME)
|
||||
else
|
||||
user.visible_message("<span class='danger'>[user] hits [src] with [I] but fails to damage it.</span>", "<span class='warning'>You hit [src] with [I], [I.force >= 10 ? "and it almost makes a dent!" : "but it appears to have no visible effect."]</span>")
|
||||
playsound(loc, "sound/weapons/genhit.ogg", I.force*2.5, 1)
|
||||
playsound(loc, "sound/weapons/Genhit.ogg", I.force*2.5, 1)
|
||||
return TRUE
|
||||
|
||||
if(invincible)
|
||||
@@ -167,7 +167,7 @@
|
||||
var/obj/item/weldingtool/WT = I
|
||||
if (WT.use(2, user))
|
||||
user.visible_message(SPAN_NOTICE("[user] starts welding the metal shell of [src]."), SPAN_NOTICE("You start [hacked ? "repairing" : "welding open"] the metal covering of [src]."))
|
||||
playsound(loc, 'sound/items/welder.ogg', 50, 1)
|
||||
playsound(loc, 'sound/items/Welder.ogg', 50, 1)
|
||||
add_overlay("overlay_welding")
|
||||
if(WT.use_tool(src, user, 25, volume = 50))
|
||||
to_chat(user, SPAN_NOTICE("You are able to [hacked ? "repair" : "weld through"] the metal shell of [src]."))
|
||||
@@ -222,7 +222,7 @@
|
||||
if (3)
|
||||
if (I.iswirecutter())
|
||||
to_chat(user, SPAN_NOTICE("You cut the wires connecting the [src]'s magnets to their internal powersupply, [target ? "making the device fall off [target] and rendering it unusable." : "rendering the device unusable."]"))
|
||||
playsound(loc, 'sound/items/wirecutter.ogg', 50, 1)
|
||||
playsound(loc, 'sound/items/Wirecutter.ogg', 50, 1)
|
||||
setconstructionstate(4)
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
to_chat(user, SPAN_WARNING("\The [O] must be safely placed on the ground for modification."))
|
||||
return
|
||||
|
||||
playsound(user.loc, 'sound/items/screwdriver.ogg', 100, 1)
|
||||
playsound(user.loc, 'sound/items/Screwdriver.ogg', 100, 1)
|
||||
|
||||
user.visible_message(
|
||||
SPAN_NOTICE("\The [user] opens \the [src] and modifies \the [O]."),
|
||||
@@ -310,4 +310,4 @@
|
||||
/obj/item/storage/box/dominianvoid
|
||||
name = "dominian voidsman's modkit box"
|
||||
desc = "Contains modkits to convert Dominian voidsuits into a voidsman's variant."
|
||||
starts_with = list(/obj/item/voidsuit_modkit/dominianvoid = 4)
|
||||
starts_with = list(/obj/item/voidsuit_modkit/dominianvoid = 4)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
/obj/item/device/kit/use(var/amt, var/mob/user)
|
||||
uses -= amt
|
||||
playsound(get_turf(user), 'sound/items/screwdriver.ogg', 50, 1)
|
||||
playsound(get_turf(user), 'sound/items/Screwdriver.ogg', 50, 1)
|
||||
if(uses<1)
|
||||
user.drop_from_inventory(src,get_turf(src))
|
||||
qdel(src)
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
else if(O.iswirecutter())
|
||||
user.drop_from_inventory(O,get_turf(src))
|
||||
to_chat(user, "<span class='notice'>You detach the wire from the [name].</span>")
|
||||
playsound(src.loc, 'sound/items/wirecutter.ogg', 100, 1)
|
||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
new /obj/item/stack/cable_coil(user.loc, 5)
|
||||
new /obj/item/stack/material/glass(user.loc)
|
||||
use(1)
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
update_icon(user)
|
||||
else if(can_be_cut && I.iswirecutter())
|
||||
user.visible_message("[user] cuts the [src].", SPAN_NOTICE("You cut the [src]."))
|
||||
playsound(src.loc, 'sound/items/wirecutter.ogg', 50, 1)
|
||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
|
||||
new/obj/item/stack/cable_coil(get_turf(src), 15, color)
|
||||
qdel(src)
|
||||
update_icon(user)
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
/obj/item/shield/riot/handle_shield(mob/user)
|
||||
. = ..()
|
||||
if(.) playsound(user.loc, 'sound/weapons/genhit.ogg', 50, 1)
|
||||
if(.) playsound(user.loc, 'sound/weapons/Genhit.ogg', 50, 1)
|
||||
|
||||
/obj/item/shield/riot/get_block_chance(mob/user, var/damage, atom/damage_source = null, mob/attacker = null)
|
||||
if(istype(damage_source, /obj/item/projectile))
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
/obj/item/shield/buckler/handle_shield(mob/user)
|
||||
. = ..()
|
||||
if(.) playsound(user.loc, 'sound/weapons/genhit.ogg', 50, 1)
|
||||
if(.) playsound(user.loc, 'sound/weapons/Genhit.ogg', 50, 1)
|
||||
|
||||
/obj/item/shield/buckler/get_block_chance(mob/user, var/damage, atom/damage_source = null, mob/attacker = null)
|
||||
if(istype(damage_source, /obj/item/projectile))
|
||||
@@ -323,7 +323,7 @@
|
||||
|
||||
. = ..()
|
||||
if(.)
|
||||
if(.) playsound(user.loc, 'sound/weapons/genhit.ogg', 50, 1)
|
||||
if(.) playsound(user.loc, 'sound/weapons/Genhit.ogg', 50, 1)
|
||||
|
||||
/obj/item/shield/riot/tact/attack_self(mob/living/user)
|
||||
active = !active
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
w_class = ITEMSIZE_TINY
|
||||
matter = list(DEFAULT_WALL_MATERIAL = 75)
|
||||
attack_verb = list("stabbed")
|
||||
usesound = 'sound/items/screwdriver.ogg'
|
||||
usesound = 'sound/items/Screwdriver.ogg'
|
||||
drop_sound = 'sound/items/drop/screwdriver.ogg'
|
||||
pickup_sound = 'sound/items/pickup/screwdriver.ogg'
|
||||
lock_picking_level = 5
|
||||
@@ -137,7 +137,7 @@
|
||||
attack_verb = list("pinched", "nipped")
|
||||
sharp = TRUE
|
||||
edge = TRUE
|
||||
usesound = 'sound/items/wirecutter.ogg'
|
||||
usesound = 'sound/items/Wirecutter.ogg'
|
||||
drop_sound = 'sound/items/drop/wirecutter.ogg'
|
||||
pickup_sound = 'sound/items/pickup/wirecutter.ogg'
|
||||
var/bomb_defusal_chance = 30 // 30% chance to safely defuse a bomb
|
||||
@@ -219,7 +219,7 @@
|
||||
slot_flags = SLOT_BELT
|
||||
drop_sound = 'sound/items/drop/weldingtool.ogg'
|
||||
pickup_sound = 'sound/items/pickup/weldingtool.ogg'
|
||||
usesound = 'sound/items/welder.ogg'
|
||||
usesound = 'sound/items/Welder.ogg'
|
||||
|
||||
attack_verb = list("hit", "bludgeoned", "whacked")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user