Skip to content

Commit

Permalink
grep checks
Browse files Browse the repository at this point in the history
  • Loading branch information
XeonMations committed Sep 11, 2024
1 parent 67e002b commit c8b3e10
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions code/datums/components/geiger_sound.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
/datum/component/geiger_sound/RegisterWithParent()
sound = new(parent)

RegisterSignal(parent, COMSIG_IN_RANGE_OF_IRRADIATION, .proc/on_pre_potential_irradiation)
RegisterSignal(parent, COMSIG_IN_RANGE_OF_IRRADIATION, PROC_REF(on_pre_potential_irradiation))

ADD_TRAIT(parent, TRAIT_BYPASS_EARLY_IRRADIATED_CHECK, REF(src))

if (isitem(parent))
var/atom/atom_parent = parent
RegisterSignal(parent, COMSIG_MOVABLE_MOVED, .proc/on_moved)
RegisterSignal(parent, COMSIG_MOVABLE_MOVED, PROC_REF(on_moved))
register_to_loc(atom_parent.loc)

/datum/component/geiger_sound/UnregisterFromParent()
Expand Down Expand Up @@ -61,7 +61,7 @@
last_parent = new_loc

if (!isnull(new_loc))
RegisterSignal(new_loc, COMSIG_IN_RANGE_OF_IRRADIATION, .proc/on_pre_potential_irradiation)
RegisterSignal(new_loc, COMSIG_IN_RANGE_OF_IRRADIATION, PROC_REF(on_pre_potential_irradiation))

/datum/looping_sound/geiger
mid_sounds = list(
Expand Down
2 changes: 1 addition & 1 deletion code/datums/components/genetic_damage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
START_PROCESSING(SSprocessing, src)

/datum/component/genetic_damage/RegisterWithParent()
RegisterSignal(parent, COMSIG_LIVING_HEALTHSCAN, .proc/on_healthscan)
RegisterSignal(parent, COMSIG_LIVING_HEALTHSCAN, PROC_REF(on_healthscan))

/datum/component/genetic_damage/UnregisterFromParent()
UnregisterSignal(parent, COMSIG_LIVING_HEALTHSCAN)
Expand Down
8 changes: 4 additions & 4 deletions code/datums/components/irradiated.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
human_parent.throw_alert("irradiated", /atom/movable/screen/alert/irradiated)

/datum/component/irradiated/RegisterWithParent()
RegisterSignal(parent, COMSIG_COMPONENT_CLEAN_ACT, .proc/on_clean)
RegisterSignal(parent, COMSIG_GEIGER_COUNTER_SCAN, .proc/on_geiger_counter_scan)
RegisterSignal(parent, COMSIG_COMPONENT_CLEAN_ACT, PROC_REF(on_clean))
RegisterSignal(parent, COMSIG_GEIGER_COUNTER_SCAN, PROC_REF(geiger_counter_scan))

Check failure on line 53 in code/datums/components/irradiated.dm

View workflow job for this annotation

GitHub Actions / Run Linters

failed to resolve path .proc/geiger_counter_scan

/datum/component/irradiated/UnregisterFromParent()
UnregisterSignal(parent, list(
Expand Down Expand Up @@ -115,7 +115,7 @@
COOLDOWN_START(src, last_tox_damage, RADIATION_TOX_INTERVAL)

/datum/component/irradiated/proc/start_burn_splotch_timer()
addtimer(CALLBACK(src, .proc/give_burn_splotches), rand(RADIATION_BURN_INTERVAL_MIN, RADIATION_BURN_INTERVAL_MAX), TIMER_STOPPABLE)
addtimer(CALLBACK(src, PROC_REF(give_burn_splotches)), rand(RADIATION_BURN_INTERVAL_MIN, RADIATION_BURN_INTERVAL_MAX), TIMER_STOPPABLE)

/datum/component/irradiated/proc/give_burn_splotches()
// This shouldn't be possible, but just in case.
Expand Down Expand Up @@ -152,7 +152,7 @@
return

parent_movable.add_filter("rad_glow", 2, list("type" = "outline", "color" = "#39ff1430", "size" = 2))
addtimer(CALLBACK(src, .proc/start_glow_loop, parent_movable), rand(0.1 SECONDS, 1.9 SECONDS)) // Things should look uneven
addtimer(CALLBACK(src, PROC_REF(start_glow_loop), parent_movable), rand(0.1 SECONDS, 1.9 SECONDS)) // Things should look uneven

/datum/component/irradiated/proc/start_glow_loop(atom/movable/parent_movable)
var/filter = parent_movable.get_filter("rad_glow")
Expand Down
4 changes: 2 additions & 2 deletions code/datums/components/radiation_countdown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
start_deletion_timer()

/datum/component/radiation_countdown/proc/start_deletion_timer()
addtimer(CALLBACK(src, .proc/remove_self), TIME_UNTIL_DELETION, TIMER_UNIQUE | TIMER_OVERRIDE)
addtimer(CALLBACK(src, PROC_REF(remove_self)), TIME_UNTIL_DELETION, TIMER_UNIQUE | TIMER_OVERRIDE)

/datum/component/radiation_countdown/proc/remove_self()
if (!HAS_TRAIT(parent, TRAIT_IRRADIATED))
Expand All @@ -34,7 +34,7 @@
qdel(src)

/datum/component/radiation_countdown/RegisterWithParent()
RegisterSignal(parent, COMSIG_IN_THRESHOLD_OF_IRRADIATION, .proc/on_pre_potential_irradiation_within_range)
RegisterSignal(parent, COMSIG_IN_THRESHOLD_OF_IRRADIATION, PROC_REF(on_pre_potential_irradiation_within_range))

/datum/component/radiation_countdown/UnregisterFromParent()
UnregisterSignal(parent, COMSIG_IN_THRESHOLD_OF_IRRADIATION)
Expand Down
2 changes: 1 addition & 1 deletion code/datums/elements/radiation_protected_clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
return ELEMENT_INCOMPATIBLE

ADD_TRAIT(target, TRAIT_RADIATION_PROTECTED_CLOTHING, REF(src))
RegisterSignal(target, COMSIG_PARENT_EXAMINE, .proc/on_examine)
RegisterSignal(target, COMSIG_PARENT_EXAMINE, PROC_REF(on_examine))

/datum/element/radiation_protected_clothing/Detach(datum/source, ...)
REMOVE_TRAIT(source, TRAIT_RADIATION_PROTECTED_CLOTHING, REF(src))
Expand Down

0 comments on commit c8b3e10

Please sign in to comment.