////////// //DILDOS// ////////// obj/item/dildo name = "dildo" desc = "Floppy!" icon = 'code/citadel/icons/dildo.dmi' damtype = BRUTE force = 0 throwforce = 0 icon_state = "dildo_knotted_2" alpha = 192//transparent var/can_customize = FALSE var/dildo_shape = "human" var/dildo_size = 2 var/dildo_type = "dildo"//pretty much just used for the icon state var/random_color = TRUE var/random_size = FALSE var/random_shape = FALSE //Lists moved to _cit_helpers.dm as globals so they're not instanced individually obj/item/dildo/proc/update_appearance() icon_state = "[dildo_type]_[dildo_shape]_[dildo_size]" var/sizeword = "" switch(dildo_size) if(1) sizeword = "small " if(3) sizeword = "big " if(4) sizeword = "huge " if(5) sizeword = "gigantic " name = "[sizeword][dildo_shape] [can_customize ? "custom " : ""][dildo_type]" obj/item/dildo/AltClick(mob/living/user) if(QDELETED(src)) return if(!isliving(user)) return if(isAI(user)) return if(user.stat > 0)//unconscious or dead return customize(user) obj/item/dildo/proc/customize(mob/living/user) if(!can_customize) return FALSE if(src && !user.incapacitated() && in_range(user,src)) var/color_choice = input(user,"Choose a color for your dildo.","Dildo Color") as null|anything in GLOB.dildo_colors if(src && color_choice && !user.incapacitated() && in_range(user,src)) sanitize_inlist(color_choice, GLOB.dildo_colors, "Red") color = GLOB.dildo_colors[color_choice] update_appearance() if(src && !user.incapacitated() && in_range(user,src)) var/shape_choice = input(user,"Choose a shape for your dildo.","Dildo Shape") as null|anything in GLOB.dildo_shapes if(src && shape_choice && !user.incapacitated() && in_range(user,src)) sanitize_inlist(shape_choice, GLOB.dildo_colors, "Knotted") dildo_shape = GLOB.dildo_shapes[shape_choice] update_appearance() if(src && !user.incapacitated() && in_range(user,src)) var/size_choice = input(user,"Choose the size for your dildo.","Dildo Size") as null|anything in GLOB.dildo_sizes if(src && size_choice && !user.incapacitated() && in_range(user,src)) sanitize_inlist(size_choice, GLOB.dildo_colors, "Medium") dildo_size = GLOB.dildo_sizes[size_choice] update_appearance() if(src && !user.incapacitated() && in_range(user,src)) var/transparency_choice = input(user,"Choose the transparency of your dildo. Lower is more transparent!(192-255)","Dildo Transparency") as null|num if(src && transparency_choice && !user.incapacitated() && in_range(user,src)) sanitize_integer(transparency_choice, 192, 255, 192) alpha = transparency_choice update_appearance() return TRUE obj/item/dildo/Initialize() . = ..() if(random_color == TRUE) var/randcolor = pick(GLOB.dildo_colors) color = GLOB.dildo_colors[randcolor] if(random_shape == TRUE) var/randshape = pick(GLOB.dildo_shapes) dildo_shape = GLOB.dildo_shapes[randshape] if(random_size == TRUE) var/randsize = pick(GLOB.dildo_sizes) dildo_size = GLOB.dildo_sizes[randsize] update_appearance() alpha = rand(192, 255) pixel_y = rand(-7,7) pixel_x = rand(-7,7) obj/item/dildo/examine(mob/user) ..() if(can_customize) user << "Alt-Click \the [src.name] to customize it." obj/item/dildo/random//totally random name = "random dildo"//this name will show up in vendors and shit so you know what you're vending(or don't, i guess :^)) random_color = TRUE random_shape = TRUE random_size = TRUE obj/item/dildo/knotted dildo_shape = "knotted" name = "knotted dildo" obj/item/dildo/human dildo_shape = "human" name = "human dildo" obj/item/dildo/plain dildo_shape = "plain" name = "plain dildo" obj/item/dildo/flared dildo_shape = "flared" name = "flared dildo" obj/item/dildo/flared/huge name = "literal horse cock" desc = "THIS THING IS HUGE!" dildo_size = 4 obj/item/dildo/custom name = "customizable dildo" desc = "Thanks to significant advances in synthetic nanomaterials, this dildo is capable of taking on many different forms to fit the user's preferences! Pricy!" can_customize = TRUE random_color = TRUE random_shape = TRUE random_size = TRUE