Skip to content

Commit

Permalink
Подсчет механических органов
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantornRU committed Jan 20, 2024
1 parent fba6cd0 commit db5392a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modular_ss220/ranks/code/exercise/pushup.dm
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,9 @@ Verbs related to getting fucking jacked, bro
valueloss -= 2
if(one_arm)
valueloss += 4
if(valueloss <= 0)
valueloss = 1

if(!ishuman(user))
return valueloss
return max(1, valueloss)

var/mob/living/carbon/human/H = user

Expand Down Expand Up @@ -240,7 +238,8 @@ Verbs related to getting fucking jacked, bro
BODY_ZONE_R_LEG,
)
for(var/zone in extremities)
if(H.get_limb_by_name(zone).is_robotic())
var/obj/item/organ/limb = H.get_limb_by_name(zone)
if(limb.is_robotic())
valueloss -= 1

switch(exp_sum)
Expand All @@ -261,6 +260,9 @@ Verbs related to getting fucking jacked, bro
else
valueloss -= 5

if(valueloss <= 0)
valueloss = 1

if(on_knees)
valueloss /= 1.5
if(one_arm)
Expand Down

0 comments on commit db5392a

Please sign in to comment.