Skip to content

Commit

Permalink
Л - логика
Browse files Browse the repository at this point in the history
  • Loading branch information
FlitchTime committed Dec 11, 2024
1 parent c93ef59 commit 600866c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@
var/mob/living/carbon/human/human = user
if(!istype(human))
return
if(operating)
if(!Adjacent(human))
return
if(HAS_TRAIT(user, TRAIT_INCAPACITATED) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
if(human.incapacitated() || HAS_TRAIT(human, TRAIT_HANDS_BLOCKED))
return
if(!Adjacent(user))
if(operating)
return

add_fingerprint(user)
Expand All @@ -165,11 +165,11 @@
var/mob/living/carbon/human/human = user
if(!istype(human))
return
if(operating)
if(!Adjacent(human))
return
if(HAS_TRAIT(user, TRAIT_INCAPACITATED) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
if(human.incapacitated() || HAS_TRAIT(human, TRAIT_HANDS_BLOCKED))
return
if(!Adjacent(user))
if(operating)
return

add_fingerprint(user)
Expand Down
12 changes: 6 additions & 6 deletions code/modules/reagents/chemistry/machinery/reagentgrinder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@
var/mob/living/carbon/human/human = user
if(!istype(human))
return
if(operating)
if(!Adjacent(human))
return
if(HAS_TRAIT(user, TRAIT_INCAPACITATED) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
if(human.incapacitated() || HAS_TRAIT(human, TRAIT_HANDS_BLOCKED))
return
if(!Adjacent(user))
if(operating)
return

add_fingerprint(user)
Expand All @@ -249,11 +249,11 @@
var/mob/living/carbon/human/human = user
if(!istype(human))
return
if(operating)
if(!Adjacent(human))
return
if(HAS_TRAIT(user, TRAIT_INCAPACITATED) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
if(human.incapacitated() || HAS_TRAIT(human, TRAIT_HANDS_BLOCKED))
return
if(!Adjacent(user))
if(operating)
return

add_fingerprint(user)
Expand Down

0 comments on commit 600866c

Please sign in to comment.