Fixed a bunch of linter warnings (#26360)

* Fixed a bunch of linter warnings

* Fix everything, maybe break something

* Fixed Time Stop not being cast by Arcane Golems

* Fixed arguments of remove_from_storage

* Fixed gun/afterattack arguments

* Fixed gun/Fire arguments

* Fixed arguments to candle/light and mob/emote

* Fixed arguments to simple_animal/revive, simple_animal/gib, robot/drop_item, mob/flash_eyes
This commit is contained in:
DamianX
2020-05-03 21:06:40 +02:00
committed by GitHub
parent bb985c490a
commit 5399c3b0f3
140 changed files with 279 additions and 318 deletions

View File

@@ -4,12 +4,13 @@
/datum/component/controller/movement/basic/RecieveSignal(var/message_type, var/list/args)
if(isliving(container.holder))
var/mob/living/M=container.holder
if(COMSIG_MOVE)
if("loc" in args)
M.start_walk_to(args["loc"], 1, walk_delay)
if("dir" in args)
M.set_glide_size(DELAY2GLIDESIZE(walk_delay))
walk(M, args["dir"], walk_delay)
switch(message_type)
if(COMSIG_MOVE)
if("loc" in args)
M.start_walk_to(args["loc"], 1, walk_delay)
if("dir" in args)
M.set_glide_size(DELAY2GLIDESIZE(walk_delay))
walk(M, args["dir"], walk_delay)
/datum/component/controller/movement/astar
var/list/movement_nodes = list()

View File

@@ -16,7 +16,7 @@
if(get_dist(src, target) > 1)
return // keep movin'.
controller.setBusy(TRUE)
SendSignal(COMSIG_MOVE, "dir"=0) // Stop movement?
SendSignal(COMSIG_MOVE, list("dir"=0)) // Stop movement?
D.visible_message("<span class='warning'>\The [D]'s motors whine as four arachnid claws begin trying to force it open!</span>")
spawn(50)
if(CanOpenDoor(D) && prob(25))

View File

@@ -12,11 +12,11 @@
continue
if(M.isUnconscious())
continue
if((M in B.enemies) || (M.faction && M.faction in B.enemy_factions) || (M.type in B.enemy_types))
if((M in B.enemies) || (M.faction && (M.faction in B.enemy_factions)) || (M.type in B.enemy_types))
o += M
else if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.species && H.species.name in B.enemy_species)
if(H.species && (H.species.name in B.enemy_species))
o += M
return o
@@ -28,4 +28,4 @@
if(damage_done > 15) //Intent to kill!
B.friends.Remove(assailant)
if(damage_done > 2)
B.enemies |= assailant
B.enemies |= assailant