diff --git a/GainStation13/code/obj/structure/scale.dm b/GainStation13/code/obj/structure/scale.dm index a196b159..50558168 100644 --- a/GainStation13/code/obj/structure/scale.dm +++ b/GainStation13/code/obj/structure/scale.dm @@ -1,6 +1,6 @@ /obj/structure/scale name = "weighing scale" - desc = "You can weigh yourself with this" + desc = "You can weigh yourself with this. Its last reading was: [src.lastreading]Lbs" icon = 'GainStation13/icons/obj/scale.dmi' icon_state = "scale" anchored = TRUE @@ -39,6 +39,19 @@ /obj/structure/chair/examine(mob/user) . = ..() . += "It's held together by a couple of bolts." - if(!has_buckled_mobs()) - . += "Drag your sprite to weigh yourself." +/obj/structure/scale/Crossed(AM) + + if(AM.ishuman()) + var/mob/living/fatty = AM + + if(isturf(loc)) + + if(!(fatty.movement_type & FLYING)) + + + src.lastreading = (150 + fatty.fatness)*(fatty.size_multiplier**2) + usr.visible_message("[usr] weighs themselves on the scales.", "You weigh yourself on the scales") + usr.visible_message(" The scales read [src.lastreading]Lbs ") + +