Browse Source

Fix leading slashes and turn on linting for it

nostation
spookydonut 8 months ago
parent
commit
d17080167c
17 changed files with 30 additions and 26 deletions
  1. +4
    -0
      SpacemanDMM.toml
  2. +1
    -1
      code/__HELPERS/unsorted.dm
  3. +1
    -1
      code/game/machinery/hologram.dm
  4. +1
    -1
      code/game/mecha/combat/durand.dm
  5. +2
    -2
      code/game/objects/items/grenades/festive.dm
  6. +1
    -1
      code/modules/antagonists/_common/antag_datum.dm
  7. +2
    -2
      code/modules/atmospherics/gasmixtures/reactions.dm
  8. +5
    -5
      code/modules/mining/aux_base_camera.dm
  9. +1
    -1
      code/modules/mob/living/simple_animal/hostile/bear.dm
  10. +1
    -1
      code/modules/mob/living/simple_animal/hostile/hostile.dm
  11. +1
    -1
      code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm
  12. +1
    -1
      code/modules/mob/living/simple_animal/hostile/space_dragon.dm
  13. +1
    -1
      code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm
  14. +4
    -4
      code/modules/projectiles/guns/ballistic/rifle.dm
  15. +1
    -1
      code/modules/reagents/reagent_containers/chem_pack.dm
  16. +2
    -2
      code/modules/research/xenobiology/crossbreeding/_status_effects.dm
  17. +1
    -1
      code/modules/shuttle/spaceship_navigation_beacon.dm

+ 4
- 0
SpacemanDMM.toml View File

@ -1,2 +1,6 @@
[langserver]
dreamchecker = true
[code_standards]
disallow_relative_type_definitions = true
disallow_relative_proc_definitions = true

+ 1
- 1
code/__HELPERS/unsorted.dm View File

@ -1094,7 +1094,7 @@ B --><-- A
return closest_atom
proc/pick_closest_path(value, list/matches = get_fancy_list_of_atom_types())
/proc/pick_closest_path(value, list/matches = get_fancy_list_of_atom_types())
if (value == FALSE) //nothing should be calling us with a number, so this is safe
value = input("Enter type to find (blank for all, cancel to cancel)", "Search for type") as null|text
if (isnull(value))


+ 1
- 1
code/game/machinery/hologram.dm View File

@ -84,7 +84,7 @@ Possible to do for anyone motivated enough:
desc = "It's a floor-mounted device for projecting holographic images. This one will refuse to auto-connect incoming calls."
secure = TRUE
obj/machinery/holopad/secure/Initialize()
/obj/machinery/holopad/secure/Initialize()
. = ..()
var/obj/item/circuitboard/machine/holopad/board = circuit
board.secure = TRUE


+ 1
- 1
code/game/mecha/combat/durand.dm View File

@ -91,7 +91,7 @@ Expects a turf. Returns true if the attack should be blocked, false if not.*/
. = TRUE
return
obj/mecha/combat/durand/attack_generic(mob/user, damage_amount = 0, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, armor_penetration = 0)
/obj/mecha/combat/durand/attack_generic(mob/user, damage_amount = 0, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, armor_penetration = 0)
if(defense_check(user.loc))
log_message("Attack absorbed by defense field. Attacker - [user].", LOG_MECHA, color="orange")
shield.attack_generic(user, damage_amount, damage_type, damage_flag, sound_effect, armor_penetration)


+ 2
- 2
code/game/objects/items/grenades/festive.dm View File

@ -84,7 +84,7 @@
/obj/item/grenade/firecracker/fire_act(exposed_temperature, exposed_volume)
prime()
obj/item/grenade/firecracker/wirecutter_act(mob/living/user, obj/item/I)
/obj/item/grenade/firecracker/wirecutter_act(mob/living/user, obj/item/I)
if(active)
return
if(det_time)
@ -96,7 +96,7 @@ obj/item/grenade/firecracker/wirecutter_act(mob/living/user, obj/item/I)
else
to_chat(user, "<span class='danger'>You've already removed all of the fuse!</span>")
obj/item/grenade/firecracker/preprime(mob/user, delayoverride, msg = TRUE, volume = 80)
/obj/item/grenade/firecracker/preprime(mob/user, delayoverride, msg = TRUE, volume = 80)
var/turf/T = get_turf(src)
log_grenade(user, T)
if(user)


+ 1
- 1
code/modules/antagonists/_common/antag_datum.dm View File

@ -266,7 +266,7 @@ GLOBAL_LIST_EMPTY(antagonists)
show_name_in_check_antagonists = TRUE //They're all different
var/datum/team/custom_team
datum/antagonist/custom/create_team(datum/team/team)
/datum/antagonist/custom/create_team(datum/team/team)
custom_team = team
/datum/antagonist/custom/get_team()


+ 2
- 2
code/modules/atmospherics/gasmixtures/reactions.dm View File

@ -265,13 +265,13 @@ datum/gas_reaction/freonfire
name = "Freon combustion"
id = "freonfire"
datum/gas_reaction/freonfire/init_reqs()
/datum/gas_reaction/freonfire/init_reqs()
min_requirements = list(
/datum/gas/oxygen = MINIMUM_MOLE_COUNT,
/datum/gas/freon = MINIMUM_MOLE_COUNT
)
datum/gas_reaction/freonfire/react(datum/gas_mixture/air, datum/holder)
/datum/gas_reaction/freonfire/react(datum/gas_mixture/air, datum/holder)
var/energy_released = 0
var/old_heat_capacity = air.heat_capacity()
var/list/cached_gases = air.gases //this speeds things up because accessing datum vars is slow


+ 5
- 5
code/modules/mining/aux_base_camera.dm View File

@ -202,7 +202,7 @@
name = "Select Airlock Type"
button_icon_state = "airlock_select"
datum/action/innate/aux_base/airlock_type/Activate()
/datum/action/innate/aux_base/airlock_type/Activate()
if(..())
return
@ -213,7 +213,7 @@ datum/action/innate/aux_base/window_type
name = "Select Window Type"
button_icon_state = "window_select"
datum/action/innate/aux_base/window_type/Activate()
/datum/action/innate/aux_base/window_type/Activate()
if(..())
return
B.RCD.toggle_window_type()
@ -222,7 +222,7 @@ datum/action/innate/aux_base/place_fan
name = "Place Tiny Fan"
button_icon_state = "build_fan"
datum/action/innate/aux_base/place_fan/Activate()
/datum/action/innate/aux_base/place_fan/Activate()
if(..())
return
@ -244,11 +244,11 @@ datum/action/innate/aux_base/place_fan/Activate()
to_chat(owner, "<span class='notice'>Tiny fan placed. [B.fans_remaining] remaining.</span>")
playsound(fan_turf, 'sound/machines/click.ogg', 50, TRUE)
datum/action/innate/aux_base/install_turret
/datum/action/innate/aux_base/install_turret
name = "Install Plasma Anti-Wildlife Turret"
button_icon_state = "build_turret"
datum/action/innate/aux_base/install_turret/Activate()
/datum/action/innate/aux_base/install_turret/Activate()
if(..())
return


+ 1
- 1
code/modules/mob/living/simple_animal/hostile/bear.dm View File

@ -173,7 +173,7 @@ mob/living/simple_animal/hostile/bear/butter //The mighty companion to Cak. Seve
to_chat(src, "<span class='notice'>Your name is now <b>\"new_name\"</b>!</span>")
name = new_name
mob/living/simple_animal/hostile/bear/butter/AttackingTarget() //Makes some attacks by the butter bear slip those who dare cross its path.
/mob/living/simple_animal/hostile/bear/butter/AttackingTarget() //Makes some attacks by the butter bear slip those who dare cross its path.
if(isliving(target))
var/mob/living/L = target
if((L.mobility_flags & MOBILITY_STAND))


+ 1
- 1
code/modules/mob/living/simple_animal/hostile/hostile.dm View File

@ -466,7 +466,7 @@
DestroyObjectsInDirection(direction)
mob/living/simple_animal/hostile/proc/DestroySurroundings() // for use with megafauna destroying everything around them
/mob/living/simple_animal/hostile/proc/DestroySurroundings() // for use with megafauna destroying everything around them
if(environment_smash)
EscapeConfinement()
for(var/dir in GLOB.cardinals)


+ 1
- 1
code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm View File

@ -81,7 +81,7 @@
projectiletype = /obj/projectile/temp/basilisk/heated
addtimer(CALLBACK(src, .proc/cool_down), 3000)
mob/living/simple_animal/hostile/asteroid/basilisk/proc/cool_down()
/mob/living/simple_animal/hostile/asteroid/basilisk/proc/cool_down()
visible_message("<span class='warning'>[src] appears to be cooling down...</span>")
if(stat != DEAD)
icon_state = "Basilisk"


+ 1
- 1
code/modules/mob/living/simple_animal/hostile/space_dragon.dm View File

@ -209,7 +209,7 @@
* Arguments:
* * turf/T - The turf to trigger the effects on.
*/
mob/living/simple_animal/hostile/space_dragon/proc/dragon_fire_line(turf/T)
/mob/living/simple_animal/hostile/space_dragon/proc/dragon_fire_line(turf/T)
var/list/hit_list = list()
hit_list += src
new /obj/effect/hotspot(T)


+ 1
- 1
code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm View File

@ -188,5 +188,5 @@
* Arguments:
* * datum/beam/vine - The vine to be removed from the list.
*/
mob/living/simple_animal/hostile/venus_human_trap/proc/remove_vine(datum/beam/vine, force)
/mob/living/simple_animal/hostile/venus_human_trap/proc/remove_vine(datum/beam/vine, force)
vines -= vine

+ 4
- 4
code/modules/projectiles/guns/ballistic/rifle.dm View File

@ -16,11 +16,11 @@
bolt_drop_sound = 'sound/weapons/gun/rifle/bolt_in.ogg'
tac_reloads = FALSE
obj/item/gun/ballistic/rifle/update_overlays()
/obj/item/gun/ballistic/rifle/update_overlays()
. = ..()
. += "[icon_state]_bolt[bolt_locked ? "_locked" : ""]"
obj/item/gun/ballistic/rifle/rack(mob/user = null)
/obj/item/gun/ballistic/rifle/rack(mob/user = null)
if (bolt_locked == FALSE)
to_chat(user, "<span class='notice'>You open the bolt of \the [src].</span>")
playsound(src, rack_sound, rack_sound_volume, rack_sound_vary)
@ -30,12 +30,12 @@ obj/item/gun/ballistic/rifle/rack(mob/user = null)
return
drop_bolt(user)
obj/item/gun/ballistic/rifle/can_shoot()
/obj/item/gun/ballistic/rifle/can_shoot()
if (bolt_locked)
return FALSE
return ..()
obj/item/gun/ballistic/rifle/attackby(obj/item/A, mob/user, params)
/obj/item/gun/ballistic/rifle/attackby(obj/item/A, mob/user, params)
if (!bolt_locked)
to_chat(user, "<span class='notice'>The bolt is closed!</span>")
return


+ 1
- 1
code/modules/reagents/reagent_containers/chem_pack.dm View File

@ -33,7 +33,7 @@
. += "<span class='notice'>Alt-click to seal it.</span>"
obj/item/reagent_containers/chem_pack/attack_self(mob/user)
/obj/item/reagent_containers/chem_pack/attack_self(mob/user)
if(sealed)
return
..()

+ 2
- 2
code/modules/research/xenobiology/crossbreeding/_status_effects.dm View File

@ -223,7 +223,7 @@
duration = -1
alert_type = null
datum/status_effect/rebreathing/tick()
/datum/status_effect/rebreathing/tick()
owner.adjustOxyLoss(-6, 0) //Just a bit more than normal breathing.
///////////////////////////////////////////////////////
@ -505,7 +505,7 @@ datum/status_effect/rebreathing/tick()
ADD_TRAIT(owner, TRAIT_NOSLIPWATER, "slimestatus")
return ..()
datum/status_effect/stabilized/blue/on_remove()
/datum/status_effect/stabilized/blue/on_remove()
REMOVE_TRAIT(owner, TRAIT_NOSLIPWATER, "slimestatus")
/datum/status_effect/stabilized/metal


+ 1
- 1
code/modules/shuttle/spaceship_navigation_beacon.dm View File

@ -21,7 +21,7 @@
. = ..()
SSshuttle.beacons |= src
obj/machinery/spaceship_navigation_beacon/emp_act()
/obj/machinery/spaceship_navigation_beacon/emp_act()
locked = TRUE
/obj/machinery/spaceship_navigation_beacon/Destroy()


Loading…
Cancel
Save