mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Adds CI to forbid some istype(src) checks. (#26980)
* first set of changes * the last checks * actually builds * Update code/modules/surgery/organs/subtypes/standard_organs.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * Update tools/ci/check_grep2.py Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * 1 fix (cigarettes) and better encapsulation in files * yeeep --------- Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -377,10 +377,8 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
icon_state = icon_off
|
||||
on = FALSE
|
||||
on_cooldown = TRUE
|
||||
if(istype(src,/obj/item/camera/spooky))
|
||||
if(user.mind && user.mind.assigned_role == "Chaplain" && see_ghosts)
|
||||
if(prob(24))
|
||||
handle_haunt(user)
|
||||
|
||||
handle_haunt(user)
|
||||
addtimer(CALLBACK(src, PROC_REF(reset_cooldown)), 6.4 SECONDS) // fucking magic numbers
|
||||
|
||||
/obj/item/camera/proc/reset_cooldown()
|
||||
@@ -427,7 +425,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
pc.Blend(tiny_img,ICON_OVERLAY, 12, 19)
|
||||
|
||||
var/datum/picture/P = new()
|
||||
if(istype(src,/obj/item/camera/digital))
|
||||
if(digital)
|
||||
P.fields["name"] = tgui_input_text(user, "Name photo:", "Photo", encode = FALSE)
|
||||
if(!P.fields["name"])
|
||||
P.fields["name"] = "Photo [current_photo_num]"
|
||||
@@ -641,13 +639,17 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
|
||||
///hauntings, like hallucinations but more spooky
|
||||
|
||||
/obj/item/camera/proc/handle_haunt(mob/user as mob)
|
||||
var/list/creepyasssounds = list('sound/effects/ghost.ogg', 'sound/effects/ghost2.ogg', 'sound/effects/heartbeat.ogg', 'sound/effects/screech.ogg',\
|
||||
'sound/hallucinations/behind_you1.ogg', 'sound/hallucinations/behind_you2.ogg', 'sound/hallucinations/far_noise.ogg', 'sound/hallucinations/growl1.ogg', 'sound/hallucinations/growl2.ogg',\
|
||||
'sound/hallucinations/growl3.ogg', 'sound/hallucinations/im_here1.ogg', 'sound/hallucinations/im_here2.ogg', 'sound/hallucinations/i_see_you1.ogg', 'sound/hallucinations/i_see_you2.ogg',\
|
||||
'sound/hallucinations/look_up1.ogg', 'sound/hallucinations/look_up2.ogg', 'sound/hallucinations/over_here1.ogg', 'sound/hallucinations/over_here2.ogg', 'sound/hallucinations/over_here3.ogg',\
|
||||
'sound/hallucinations/turn_around1.ogg', 'sound/hallucinations/turn_around2.ogg', 'sound/hallucinations/veryfar_noise.ogg', 'sound/hallucinations/wail.ogg')
|
||||
user << pick(creepyasssounds)
|
||||
/obj/item/camera/proc/handle_haunt(mob/user)
|
||||
return
|
||||
|
||||
/obj/item/camera/spooky/handle_haunt(mob/user)
|
||||
if(user.mind && user.mind.assigned_role == "Chaplain" && see_ghosts && prob(24))
|
||||
var/list/creepyasssounds = list('sound/effects/ghost.ogg', 'sound/effects/ghost2.ogg', 'sound/effects/heartbeat.ogg', 'sound/effects/screech.ogg',\
|
||||
'sound/hallucinations/behind_you1.ogg', 'sound/hallucinations/behind_you2.ogg', 'sound/hallucinations/far_noise.ogg', 'sound/hallucinations/growl1.ogg', 'sound/hallucinations/growl2.ogg',\
|
||||
'sound/hallucinations/growl3.ogg', 'sound/hallucinations/im_here1.ogg', 'sound/hallucinations/im_here2.ogg', 'sound/hallucinations/i_see_you1.ogg', 'sound/hallucinations/i_see_you2.ogg',\
|
||||
'sound/hallucinations/look_up1.ogg', 'sound/hallucinations/look_up2.ogg', 'sound/hallucinations/over_here1.ogg', 'sound/hallucinations/over_here2.ogg', 'sound/hallucinations/over_here3.ogg',\
|
||||
'sound/hallucinations/turn_around1.ogg', 'sound/hallucinations/turn_around2.ogg', 'sound/hallucinations/veryfar_noise.ogg', 'sound/hallucinations/wail.ogg')
|
||||
SEND_SOUND(user, pick(creepyasssounds))
|
||||
|
||||
|
||||
/obj/item/camera/proc/build_composite_icon(atom/A)
|
||||
|
||||
Reference in New Issue
Block a user