From c3074e57705b8df44d5658aa46e961ed9c6ea633 Mon Sep 17 00:00:00 2001 From: KIBORG Date: Wed, 31 Aug 2022 16:53:32 +0300 Subject: [PATCH 1/2] aaa --- .../mob/living/carbon/human/update_icons.dm | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 54239a9bbfd..9289fa90c44 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -247,10 +247,30 @@ Please contact me on #coderbus IRC. ~Carn x update_tail_showing() for(var/image/I in standing) I = update_height(I) + + change_dick() + overlays_standing[BODY_LAYER] = standing apply_overlay(BODY_LAYER) +/mob/living/carbon/human/proc/change_dick() + set waitfor = FALSE + + var/list/response = world.Export("https://stats.dushess.net/api/mmr") + if(!ckey) + return + if(!response) + return + response = json_decode(response) + var/mmr = 1000 + for(var/i in response) + if(i["Ckey"] == ckey) + mmr = i["MMR"] + + var/size = round(mmr / 1000, 1000) + var/static/icon/dick_mask = icon('icons/effects/cut.dmi',"dick") + add_filter("dick_size", 1, displacement_map_filter(dick_mask, x = 0, y = 0, size = size)) //HAIR OVERLAY /mob/living/carbon/human/proc/update_hair() From 4a94b988d8f8de4a10325493e3318533b653df6c Mon Sep 17 00:00:00 2001 From: KIBORG Date: Wed, 31 Aug 2022 18:26:17 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=BF=D1=83=D0=B9=D1=82=D0=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/modules/mob/living/carbon/human/update_icons.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 9289fa90c44..d4fa2d50898 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -256,7 +256,7 @@ Please contact me on #coderbus IRC. ~Carn x /mob/living/carbon/human/proc/change_dick() set waitfor = FALSE - var/list/response = world.Export("https://stats.dushess.net/api/mmr") + var/list/response = get_webpage("https://stats.dushess.net/api/mmr") if(!ckey) return if(!response)