mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-16 02:33:36 +01:00
[MIRROR] Begin clickcode attack_self fix (#12173)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
063cf6cf48
commit
3cac28f9ad
@@ -114,7 +114,10 @@
|
||||
return ..()
|
||||
|
||||
// On-click handling. Turns on the computer if it's off and opens the GUI.
|
||||
/obj/item/modular_computer/attack_self(var/mob/user)
|
||||
/obj/item/modular_computer/attack_self(mob/user)
|
||||
. = ..(user)
|
||||
if(.)
|
||||
return TRUE
|
||||
if(enabled && screen_on)
|
||||
if(isliving(user) && HAS_TRAIT(user, TRAIT_UNLUCKY) && prob(5))
|
||||
var/mob/living/unlucky_soul = user
|
||||
|
||||
Reference in New Issue
Block a user