some dreamchecker fixes and a for loop change (#29997)

This commit is contained in:
Toastical
2025-08-06 00:05:00 +03:00
committed by GitHub
parent a877c1a5a1
commit e35ff2dcb2
5 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -37,8 +37,8 @@
/// Deactivates the functionality defines by the element on the given datum
/datum/element/proc/Detach(datum/source, force)
SHOULD_CALL_PARENT(TRUE)
SEND_SIGNAL(source, COMSIG_ELEMENT_DETACH, src)
SHOULD_CALL_PARENT(1)
UnregisterSignal(source, COMSIG_PARENT_QDELETING)
/datum/element/Destroy(force)
+1 -1
View File
@@ -46,8 +46,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective)
var/delayed_objective_text = "This is a bug! Report it on the github and ask an admin what type of objective"
/datum/objective/New(text, datum/team/team_to_join, datum/mind/_owner)
. = ..()
SHOULD_CALL_PARENT(TRUE)
. = ..()
GLOB.all_objectives += src
if(text)
explanation_text = text
+1 -1
View File
@@ -356,7 +356,7 @@
/atom/proc/auto_turn()
//Automatically turns based on nearby walls.
var/turf/simulated/wall/T = null
for(var/i = 1, i <= 8; i += i)
for(var/i in 1 to 8)
T = get_ranged_target_turf(src, i, 1)
if(istype(T))
//If someone knows a better way to do this, let me know. -Giacom
@@ -393,7 +393,6 @@
//Parent proc checks if a mob can_be_flashed()
. = ..()
SIGNAL_HANDLER
SEND_SIGNAL(src, COMSIG_CARBON_FLASH_EYES, laser_pointer)
var/damage = intensity - check_eye_prot()
var/extra_damage = 0
+1
View File
@@ -860,6 +860,7 @@
//called when the mob receives a bright flash
/mob/living/proc/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /atom/movable/screen/fullscreen/stretch/flash)
SIGNAL_HANDLER
if(can_be_flashed(intensity, override_blindness_check))
overlay_fullscreen("flash", type)
addtimer(CALLBACK(src, PROC_REF(clear_fullscreen), "flash", 25), 25)