diff --git a/code/__defines/misc.dm b/code/__defines/misc.dm index 69c8b45c800..08a1192c051 100644 --- a/code/__defines/misc.dm +++ b/code/__defines/misc.dm @@ -341,6 +341,7 @@ #define ITEMSIZE_NORMAL 3 #define ITEMSIZE_LARGE 4 #define ITEMSIZE_HUGE 5 +#define ITEMSIZE_IMMENSE 6 // getFlatIcon function altering defines #define GFI_ROTATION_DEFAULT 0 //Don't do anything special diff --git a/code/defines/obj.dm b/code/defines/obj.dm index 9fc018f0986..4f2332760b5 100644 --- a/code/defines/obj.dm +++ b/code/defines/obj.dm @@ -71,7 +71,7 @@ item_state = "beachball" density = 0 anchored = 0 - w_class = 4 + w_class = ITEMSIZE_LARGE force = 0.0 throwforce = 0.0 throw_speed = 1 diff --git a/code/defines/obj/weapon.dm b/code/defines/obj/weapon.dm index 8444ce01de9..30495cd75d1 100644 --- a/code/defines/obj/weapon.dm +++ b/code/defines/obj/weapon.dm @@ -8,7 +8,7 @@ throwforce = 2.0 throw_speed = 1 throw_range = 4 - w_class = 2 + w_class = ITEMSIZE_SMALL attack_verb = list("called", "rang") hitsound = 'sound/weapons/ring.ogg' @@ -22,7 +22,7 @@ anchored = 0.0 var/stored_matter = 0 var/mode = 1 - w_class = 3.0 + w_class = ITEMSIZE_NORMAL /obj/item/bikehorn name = "bike horn" @@ -31,7 +31,7 @@ icon_state = "bike_horn" item_state = "bike_horn" throwforce = 3 - w_class = 2 + w_class = ITEMSIZE_SMALL throw_speed = 3 throw_range = 15 attack_verb = list("HONKED") @@ -53,7 +53,7 @@ flags = CONDUCT force = 10 throwforce = 7.0 - w_class = 4 + w_class = ITEMSIZE_LARGE matter = list(DEFAULT_WALL_MATERIAL = 50) attack_verb = list("bludgeoned", "whacked", "disciplined", "thrashed") @@ -299,7 +299,7 @@ var/size = 3.0 var/obj/item/gift = null item_state = "gift" - w_class = 4.0 + w_class = ITEMSIZE_LARGE /obj/item/gift/random_pixel/Initialize() pixel_x = rand(-16,16) @@ -313,7 +313,7 @@ icon_state = "handcuff" flags = CONDUCT throwforce = 0 - w_class = 3.0 + w_class = ITEMSIZE_NORMAL origin_tech = list(TECH_MATERIAL = 1) var/breakouttime = 300 //Deciseconds = 30s = 0.5 minute @@ -331,7 +331,7 @@ slot_flags = SLOT_BELT item_state = "radio" throwforce = 5 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throw_speed = 4 throw_range = 20 matter = list(DEFAULT_WALL_MATERIAL = 100) @@ -346,7 +346,7 @@ throwforce = 5.0 throw_speed = 1 throw_range = 5 - w_class = 2.0 + w_class = ITEMSIZE_SMALL attack_verb = list("bludgeoned", "whacked", "disciplined") /obj/item/staff/broom @@ -372,12 +372,12 @@ throwforce = 5.0 throw_speed = 1 throw_range = 5 - w_class = 2.0 + w_class = ITEMSIZE_SMALL /obj/item/module icon = 'icons/obj/module.dmi' icon_state = "std_mod" - w_class = 2.0 + w_class = ITEMSIZE_SMALL item_state = "electronic" flags = CONDUCT var/mtype = 1 // 1=electronic 2=hardware @@ -419,7 +419,7 @@ name = "camera bug" icon = 'icons/obj/device.dmi' icon_state = "flash" - w_class = 1.0 + w_class = ITEMSIZE_TINY item_state = "electronic" throw_speed = 4 throw_range = 20 @@ -480,7 +480,7 @@ slot_l_hand_str = 'icons/mob/items/lefthand_device.dmi', slot_r_hand_str = 'icons/mob/items/righthand_device.dmi' ) - w_class = 5 + w_class = ITEMSIZE_HUGE can_hold = list(/obj/item/stock_parts,/obj/item/reagent_containers/glass/beaker) storage_slots = 50 use_to_pickup = 1 @@ -488,7 +488,7 @@ allow_quick_empty = 1 collection_mode = 1 display_contents_with_number = 1 - max_w_class = 3 + max_w_class = ITEMSIZE_NORMAL max_storage_space = 100 /obj/item/ectoplasm diff --git a/code/game/gamemodes/antagspawner.dm b/code/game/gamemodes/antagspawner.dm index a62fda5eecf..391a0ed3f41 100644 --- a/code/game/gamemodes/antagspawner.dm +++ b/code/game/gamemodes/antagspawner.dm @@ -9,7 +9,7 @@ /obj/item/antag_spawner throw_speed = 1 throw_range = 5 - w_class = 1.0 + w_class = ITEMSIZE_TINY var/uses = 1 /obj/item/antag_spawner/proc/equip_antag(mob/target as mob) @@ -39,4 +39,4 @@ SSghostroles.add_spawn_atom("syndiborg", F) var/area/A = get_area(src) if(A) - say_dead_direct("A syndicate cyborg has started its boot process in [A.name]! Spawn in as it by using the ghost spawner menu in the ghost tab, and try to be good!") \ No newline at end of file + say_dead_direct("A syndicate cyborg has started its boot process in [A.name]! Spawn in as it by using the ghost spawner menu in the ghost tab, and try to be good!") diff --git a/code/game/gamemodes/changeling/implements/items.dm b/code/game/gamemodes/changeling/implements/items.dm index 3572bbe8aa8..bcf1b271f06 100644 --- a/code/game/gamemodes/changeling/implements/items.dm +++ b/code/game/gamemodes/changeling/implements/items.dm @@ -5,7 +5,7 @@ icon_state = "arm_blade" item_state = "arm_blade" contained_sprite = TRUE - w_class = 4 + w_class = ITEMSIZE_LARGE force = 30 sharp = TRUE edge = TRUE @@ -103,7 +103,7 @@ host.embedded -= src host.drop_from_inventory(src) QDEL_IN(src, 1) - + /obj/item/shield/riot/changeling/get_block_chance(mob/user, var/damage, atom/damage_source = null, mob/attacker = null) if(istype(damage_source, /obj/item/projectile)) var/obj/item/projectile/P = damage_source @@ -120,4 +120,4 @@ sharp = TRUE edge = FALSE throwforce = 5 - w_class = 2 + w_class = ITEMSIZE_SMALL diff --git a/code/game/gamemodes/cult/items/sword.dm b/code/game/gamemodes/cult/items/sword.dm index b6360fd2b33..1e097de516c 100644 --- a/code/game/gamemodes/cult/items/sword.dm +++ b/code/game/gamemodes/cult/items/sword.dm @@ -6,8 +6,8 @@ icon_state = "cultblade" item_state = "cultblade" contained_sprite = TRUE - w_class = 4 force = 25 + w_class = ITEMSIZE_LARGE throwforce = 10 slot_flags = SLOT_BELT edge = TRUE diff --git a/code/game/gamemodes/cult/items/tome.dm b/code/game/gamemodes/cult/items/tome.dm index 68ab2a92fea..b87328ef519 100644 --- a/code/game/gamemodes/cult/items/tome.dm +++ b/code/game/gamemodes/cult/items/tome.dm @@ -5,7 +5,7 @@ item_state = "tome" throw_speed = 1 throw_range = 5 - w_class = 2.0 + w_class = ITEMSIZE_SMALL unique = TRUE slot_flags = SLOT_BELT @@ -98,7 +98,7 @@ var/area/A = get_area(scribe) if(use_check_and_message(scribe)) return - + //prevents using multiple dialogs to layer runes. if(locate(/obj/effect/rune) in get_turf(scribe)) //This is check is done twice. once when choosing to scribe a rune, once here to_chat(scribe, SPAN_WARNING("There is already a rune in this location.")) @@ -123,4 +123,4 @@ to_chat(user, "The scriptures of Nar-Sie, The One Who Sees, The Geometer of Blood. Contains the details of every ritual his followers could think of. Most of these are useless, though.") /obj/item/book/tome/cultify() - return \ No newline at end of file + return diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm index 99d83d98284..5ce4656e487 100644 --- a/code/game/gamemodes/nuclear/pinpointer.dm +++ b/code/game/gamemodes/nuclear/pinpointer.dm @@ -4,7 +4,7 @@ icon_state = "pinoff" flags = CONDUCT slot_flags = SLOT_BELT - w_class = 2.0 + w_class = ITEMSIZE_SMALL item_state = "electronic" throw_speed = 4 throw_range = 20 diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index 7f196ce3eef..1df2ac4fc51 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -839,7 +839,7 @@ Just a object used in constructing air alarms icon = 'icons/obj/doors/door_assembly.dmi' icon_state = "door_electronics" desc = "Looks like a circuit. Probably is." - w_class = 2.0 + w_class = ITEMSIZE_SMALL matter = list(DEFAULT_WALL_MATERIAL = 50, MATERIAL_GLASS = 50) // Fire Alarms moved to firealarm.dm diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm index a1edd75c913..7ee5ae75ea1 100644 --- a/code/game/machinery/atmoalter/canister.dm +++ b/code/game/machinery/atmoalter/canister.dm @@ -11,7 +11,7 @@ density = 1 var/health = 100.0 flags = CONDUCT - w_class = 5 + w_class = ITEMSIZE_HUGE var/valve_open = 0 var/release_pressure = ONE_ATMOSPHERE diff --git a/code/game/machinery/atmoalter/pump.dm b/code/game/machinery/atmoalter/pump.dm index 98f230c10e1..e267b682ccd 100644 --- a/code/game/machinery/atmoalter/pump.dm +++ b/code/game/machinery/atmoalter/pump.dm @@ -8,7 +8,7 @@ icon = 'icons/obj/atmos.dmi' icon_state = "psiphon:0" density = 1 - w_class = 3 + w_class = ITEMSIZE_NORMAL var/on = 0 var/direction_out = 0 //0 = siphoning, 1 = releasing diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm index a186d99b7a3..3a8d5d85c7c 100644 --- a/code/game/machinery/atmoalter/scrubber.dm +++ b/code/game/machinery/atmoalter/scrubber.dm @@ -8,7 +8,7 @@ icon = 'icons/obj/atmos.dmi' icon_state = "pscrubber:0" density = 1 - w_class = 3 + w_class = ITEMSIZE_NORMAL var/on = 0 var/volume_rate = 800 diff --git a/code/game/machinery/camera/camera_assembly.dm b/code/game/machinery/camera/camera_assembly.dm index 93a04c66a6b..1628c1afd5b 100644 --- a/code/game/machinery/camera/camera_assembly.dm +++ b/code/game/machinery/camera/camera_assembly.dm @@ -3,7 +3,7 @@ desc = "A pre-fabricated security camera kit, ready to be assembled and mounted to a surface." icon = 'icons/obj/monitors.dmi' icon_state = "cameracase" - w_class = 2 + w_class = ITEMSIZE_SMALL anchored = 0 matter = list(DEFAULT_WALL_MATERIAL = 700, MATERIAL_GLASS = 300) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index e8271c5b5e1..aaf591c302e 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -400,7 +400,7 @@ icon = 'icons/obj/cloning.dmi' icon_state = "datadisk0" //Gosh I hope syndies don't mistake them for the nuke disk. item_state = "card-id" - w_class = 2.0 + w_class = ITEMSIZE_SMALL var/datum/dna2/record/buf = null var/read_only = 0 //Well,it's still a floppy disk diff --git a/code/game/machinery/computer/arcade_orion.dm b/code/game/machinery/computer/arcade_orion.dm index dce16f0ca15..7063aef15dc 100644 --- a/code/game/machinery/computer/arcade_orion.dm +++ b/code/game/machinery/computer/arcade_orion.dm @@ -487,7 +487,7 @@ desc = "A model spaceship, it looks like those used back in the day when travelling to Orion! It even has a miniature FX-293 reactor, which was renowned for its instability and tendency to explode..." icon = 'icons/obj/toy.dmi' icon_state = "ship" - w_class = 2 + w_class = ITEMSIZE_SMALL var/active = 0 //if the ship is on /obj/item/orion_ship/examine(mob/user) ..() @@ -534,4 +534,4 @@ #undef ORION_VIEW_MAIN #undef ORION_VIEW_SUPPLIES -#undef ORION_VIEW_CREW \ No newline at end of file +#undef ORION_VIEW_CREW diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm index 657886583ef..6682cca4dae 100644 --- a/code/game/machinery/deployable.dm +++ b/code/game/machinery/deployable.dm @@ -291,7 +291,7 @@ for reference: name = "legion barrier kit" desc = "A quick assembly kit for deploying id-lockable barriers in the field. Most commonly seen used for crowd control by corporate security." icon_state = "barrier_kit" - w_class = 2 + w_class = ITEMSIZE_SMALL kit_product = /obj/machinery/deployable/barrier/legion /obj/item/deployable_kit/surgery_table @@ -300,7 +300,7 @@ for reference: icon = 'icons/obj/surgery.dmi' icon_state = "table_deployable" item_state = "table_parts" - w_class = 4 + w_class = ITEMSIZE_LARGE kit_product = /obj/machinery/optable assembly_time = 20 SECONDS @@ -325,7 +325,7 @@ for reference: item_state = "table_parts" drop_sound = 'sound/items/drop/axe.ogg' pickup_sound = 'sound/items/pickup/axe.ogg' - w_class = 4 + w_class = ITEMSIZE_LARGE kit_product = /obj/machinery/porta_turret/legion assembly_time = 15 SECONDS @@ -335,7 +335,7 @@ for reference: icon = 'icons/obj/storage.dmi' icon_state = "inf_box" item_state = "syringe_kit" - w_class = 3 + w_class = ITEMSIZE_NORMAL kit_product = /obj/machinery/iv_drip assembly_time = 4 SECONDS diff --git a/code/game/machinery/firealarm.dm b/code/game/machinery/firealarm.dm index 1423d1ed54b..cf4d33714bd 100644 --- a/code/game/machinery/firealarm.dm +++ b/code/game/machinery/firealarm.dm @@ -285,7 +285,7 @@ Just a object used in constructing fire alarms icon = 'icons/obj/doors/door_assembly.dmi' icon_state = "door_electronics" desc = "A circuit. It has a label on it, it says \"Can handle heat levels up to 40 degrees celsius!\"" - w_class = 2.0 + w_class = ITEMSIZE_SMALL matter = list(DEFAULT_WALL_MATERIAL = 50, MATERIAL_GLASS = 50) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index 7213ddaa9b7..3246c42faf1 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -96,7 +96,7 @@ Class Procs: /obj/machinery name = "machinery" icon = 'icons/obj/stationobjs.dmi' - w_class = 10 + w_class = ITEMSIZE_IMMENSE layer = OBJ_LAYER - 0.01 var/stat = 0 diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index a5e1c4ee333..4856af19fe3 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -811,7 +811,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co desc = "An issue of The Griffon, the newspaper circulating aboard most stations." icon = 'icons/obj/bureaucracy.dmi' icon_state = "newspaper" - w_class = 2 //Let's make it fit in trashbags! + w_class = ITEMSIZE_SMALL //Let's make it fit in trashbags! attack_verb = list("bapped") var/screen = 0 var/pages = 0 @@ -988,7 +988,7 @@ obj/item/newspaper/attackby(obj/item/W as obj, mob/user as mob) if(news_call) for(var/mob/O in hearers(world.view-1, T)) O.show_message("[src.name] beeps, \"[news_call]\"",2) - + if (!alert) alert = 1 update_icon() diff --git a/code/game/machinery/nuclear_bomb.dm b/code/game/machinery/nuclear_bomb.dm index 09f7a28b4fa..30c28f7c44a 100644 --- a/code/game/machinery/nuclear_bomb.dm +++ b/code/game/machinery/nuclear_bomb.dm @@ -396,7 +396,7 @@ var/bomb_set desc = "Better keep this safe." icon_state = "nucleardisk" item_state = "card-id" - w_class = 1.0 + w_class = ITEMSIZE_TINY /obj/item/disk/nuclear/Initialize() . = ..() diff --git a/code/game/machinery/pipe/construction.dm b/code/game/machinery/pipe/construction.dm index b4a0debf1fb..f4c86b9461f 100644 --- a/code/game/machinery/pipe/construction.dm +++ b/code/game/machinery/pipe/construction.dm @@ -63,7 +63,7 @@ Buildable meters icon_state = "simple" item_state = "buildpipe" randpixel = 5 - w_class = 3 + w_class = ITEMSIZE_NORMAL level = 2 obj_flags = OBJ_FLAG_ROTATABLE @@ -1194,7 +1194,7 @@ Buildable meters icon = 'icons/obj/pipe-item.dmi' icon_state = "meter" item_state = "buildpipe" - w_class = 4 + w_class = ITEMSIZE_LARGE /obj/item/pipe_meter/attackby(var/obj/item/W as obj, var/mob/user as mob) ..() diff --git a/code/game/machinery/vending_items.dm b/code/game/machinery/vending_items.dm index 715d78caabd..ab888d3b5d2 100644 --- a/code/game/machinery/vending_items.dm +++ b/code/game/machinery/vending_items.dm @@ -14,7 +14,7 @@ throwforce = 10 throw_speed = 1 throw_range = 7 - w_class = 3 + w_class = ITEMSIZE_NORMAL var/charges = 0 /obj/item/vending_refill/examine(mob/user) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index f26976f4218..21dcef56429 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -1,7 +1,7 @@ /obj/item name = "item" icon = 'icons/obj/items.dmi' - w_class = 3.0 + w_class = ITEMSIZE_NORMAL var/image/blood_overlay //this saves our blood splatter overlay, which will be processed not to go over the edges of the sprite var/randpixel = 6 diff --git a/code/game/objects/items/bees_items.dm b/code/game/objects/items/bees_items.dm index fc22d9c9ebe..adbcc3e18f4 100644 --- a/code/game/objects/items/bees_items.dm +++ b/code/game/objects/items/bees_items.dm @@ -4,7 +4,7 @@ desc = "Place her into an apiary so she can get busy." icon = 'icons/obj/seeds.dmi' icon_state = "vine2" - w_class = 1 + w_class = ITEMSIZE_TINY @@ -13,7 +13,7 @@ icon = 'icons/obj/apiary_bees_etc.dmi' icon_state = "apiary_item" item_state = "giftbag" - w_class = 5 + w_class = ITEMSIZE_HUGE /obj/item/beezeez name = "bottle of BeezEez" diff --git a/code/game/objects/items/bodybag.dm b/code/game/objects/items/bodybag.dm index 52c18c9e810..316bec686ef 100644 --- a/code/game/objects/items/bodybag.dm +++ b/code/game/objects/items/bodybag.dm @@ -5,7 +5,7 @@ desc = "A folded bag designed for the storage and transportation of cadavers." icon = 'icons/obj/bodybag.dmi' icon_state = "bodybag_folded" - w_class = 2.0 + w_class = ITEMSIZE_SMALL drop_sound = 'sound/items/drop/cloth.ogg' pickup_sound = 'sound/items/pickup/cloth.ogg' diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 2db6952a2ec..006d6d7f5a4 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -10,7 +10,7 @@ var/global/list/obj/item/device/pda/PDAs = list() icon = 'icons/obj/pda.dmi' icon_state = "pda" item_state = "electronic" - w_class = 2.0 + w_class = ITEMSIZE_SMALL slot_flags = SLOT_ID | SLOT_BELT uv_intensity = 15 drop_sound = 'sound/items/drop/disk.ogg' diff --git a/code/game/objects/items/devices/PDA/cart.dm b/code/game/objects/items/devices/PDA/cart.dm index 4b968ae24bc..dcdffecb091 100644 --- a/code/game/objects/items/devices/PDA/cart.dm +++ b/code/game/objects/items/devices/PDA/cart.dm @@ -4,7 +4,7 @@ icon = 'icons/obj/cartridge.dmi' icon_state = "cart" item_state = "electronic" - w_class = 1 + w_class = ITEMSIZE_TINY drop_sound = 'sound/items/drop/component.ogg' pickup_sound = 'sound/items/pickup/component.ogg' diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm index ed6006f5f3b..330a5896e82 100644 --- a/code/game/objects/items/devices/aicard.dm +++ b/code/game/objects/items/devices/aicard.dm @@ -3,7 +3,7 @@ icon = 'icons/obj/pai.dmi' icon_state = "aicard" // aicard-full item_state = "electronic" - w_class = 2.0 + w_class = ITEMSIZE_SMALL slot_flags = SLOT_BELT var/flush = null origin_tech = list(TECH_DATA = 4, TECH_MATERIAL = 4) diff --git a/code/game/objects/items/devices/binoculars.dm b/code/game/objects/items/devices/binoculars.dm index 73c8fa4d36c..c6b5389002c 100644 --- a/code/game/objects/items/devices/binoculars.dm +++ b/code/game/objects/items/devices/binoculars.dm @@ -6,7 +6,7 @@ flags = CONDUCT force = 5.0 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throwforce = 5.0 throw_range = 15 throw_speed = 3 diff --git a/code/game/objects/items/devices/dociler.dm b/code/game/objects/items/devices/dociler.dm index b4e4908dec4..b8b8a4ff50e 100644 --- a/code/game/objects/items/devices/dociler.dm +++ b/code/game/objects/items/devices/dociler.dm @@ -1,7 +1,7 @@ /obj/item/device/dociler name = "dociler" desc = "A complex single use recharging injector that spreads a complex neurological serum that makes animals docile and friendly. Somewhat." - w_class = 3 + w_class = ITEMSIZE_NORMAL origin_tech = list(TECH_BIO = 5, TECH_MATERIAL = 2) // To-do track down where the hell this sprite went? icon = 'icons/obj/guns/decloner.dmi' @@ -65,4 +65,4 @@ /obj/item/device/dociler/proc/do_recharge() loaded = 1 icon_state = "animal_tagger1" - src.visible_message("\The [src] beeps, refilling itself.") \ No newline at end of file + src.visible_message("\The [src] beeps, refilling itself.") diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm index 7014edcefa7..998b3b8849d 100644 --- a/code/game/objects/items/devices/flash.dm +++ b/code/game/objects/items/devices/flash.dm @@ -4,7 +4,7 @@ icon_state = "flash" item_state = "flash" throwforce = 5 - w_class = 2 + w_class = ITEMSIZE_SMALL throw_speed = 4 throw_range = 10 flags = CONDUCT diff --git a/code/game/objects/items/devices/holowarrant.dm b/code/game/objects/items/devices/holowarrant.dm index d7fc88aafb2..4ad1e41836e 100644 --- a/code/game/objects/items/devices/holowarrant.dm +++ b/code/game/objects/items/devices/holowarrant.dm @@ -3,7 +3,7 @@ desc = "The practical paperwork replacement for the officer on the go." icon_state = "holowarrant" throwforce = 5 - w_class = 2 + w_class = ITEMSIZE_SMALL throw_speed = 4 throw_range = 10 flags = CONDUCT diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm index 6b4a5d9dcc0..5d0b8e7db70 100644 --- a/code/game/objects/items/devices/laserpointer.dm +++ b/code/game/objects/items/devices/laserpointer.dm @@ -8,7 +8,7 @@ item_state = "pen" var/pointer_icon_state slot_flags = SLOT_BELT - w_class = 1 + w_class = ITEMSIZE_TINY var/turf/pointer_loc var/obj/item/stock_parts/micro_laser/diode //cant use the laser without it @@ -101,7 +101,7 @@ C.eye_blind = 3 else outmsg = "You fail to blind [C] with [src]" - + //laser pointer image icon_state = "pointer_[pointer_icon_state]" var/list/showto = list() @@ -125,4 +125,4 @@ if (diode) QDEL_NULL(diode) - . = ..() \ No newline at end of file + . = ..() diff --git a/code/game/objects/items/devices/lighting/flashlight.dm b/code/game/objects/items/devices/lighting/flashlight.dm index 20967cfd4c1..5646b0daefa 100644 --- a/code/game/objects/items/devices/lighting/flashlight.dm +++ b/code/game/objects/items/devices/lighting/flashlight.dm @@ -134,7 +134,7 @@ flags = CONDUCT slot_flags = SLOT_EARS brightness_on = 2 - w_class = 1 + w_class = ITEMSIZE_TINY light_wedge = LIGHT_OMNI /obj/item/device/flashlight/drone @@ -144,7 +144,7 @@ item_state = "" flags = CONDUCT brightness_on = 2 - w_class = 1 + w_class = ITEMSIZE_TINY /obj/item/device/flashlight/heavy name = "heavy duty flashlight" @@ -152,7 +152,7 @@ icon_state = "heavyflashlight" item_state = "heavyflashlight" brightness_on = 4 - w_class = 3 + w_class = ITEMSIZE_NORMAL uv_intensity = 60 matter = list(DEFAULT_WALL_MATERIAL = 100, MATERIAL_GLASS = 70) light_wedge = LIGHT_SEMI @@ -164,7 +164,7 @@ item_state = "maglight" force = 10 brightness_on = 5 - w_class = 3 + w_class = ITEMSIZE_NORMAL uv_intensity = 70 attack_verb = list("slammed", "whacked", "bashed", "thunked", "battered", "bludgeoned", "thrashed") matter = list(DEFAULT_WALL_MATERIAL = 200, MATERIAL_GLASS = 100) @@ -178,7 +178,7 @@ icon = 'icons/obj/lighting.dmi' icon_state = "floor1" //not a slime extract sprite but... something close enough! item_state = "slime" - w_class = 1 + w_class = ITEMSIZE_TINY brightness_on = 6 uv_intensity = 200 on = 1 //Bio-luminesence has one setting, on. @@ -199,6 +199,6 @@ flags = CONDUCT slot_flags = SLOT_HEAD | SLOT_EARS brightness_on = 2 - w_class = 1 + w_class = ITEMSIZE_TINY light_wedge = LIGHT_WIDE body_parts_covered = 0 diff --git a/code/game/objects/items/devices/lightmeter.dm b/code/game/objects/items/devices/lightmeter.dm index 87c5abd1cba..ac5e21d999d 100644 --- a/code/game/objects/items/devices/lightmeter.dm +++ b/code/game/objects/items/devices/lightmeter.dm @@ -9,7 +9,7 @@ // Copied from debugger.dm flags = CONDUCT force = 5.0 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throwforce = 5.0 throw_range = 15 throw_speed = 3 diff --git a/code/game/objects/items/devices/magnetic_lock.dm b/code/game/objects/items/devices/magnetic_lock.dm index 207b31fa51a..b1db32013af 100644 --- a/code/game/objects/items/devices/magnetic_lock.dm +++ b/code/game/objects/items/devices/magnetic_lock.dm @@ -11,7 +11,7 @@ icon = 'icons/obj/magnetic_locks.dmi' icon_state = "inactive_CENTCOM" //icon_state = "inactive" - w_class = 3 + w_class = ITEMSIZE_NORMAL req_access = list(access_cent_specops) health = 150 @@ -44,7 +44,7 @@ /obj/item/device/magnetic_lock/security/legion name = "legion magnetic door lock" req_access = (access_legion) - w_class = 2 + w_class = ITEMSIZE_SMALL /obj/item/device/magnetic_lock/security/legion/Initialize() ..() diff --git a/code/game/objects/items/devices/medicaltools.dm b/code/game/objects/items/devices/medicaltools.dm index 5454995bbec..f058a6b55b8 100644 --- a/code/game/objects/items/devices/medicaltools.dm +++ b/code/game/objects/items/devices/medicaltools.dm @@ -3,7 +3,7 @@ desc = "A miniature machine that tracks suit sensors across the station." icon = 'icons/obj/device.dmi' icon_state = "scanner" - w_class = 2 + w_class = ITEMSIZE_SMALL slot_flags = SLOT_BELT var/datum/nano_module/crew_monitor/crew_monitor @@ -17,4 +17,4 @@ return ..() /obj/item/device/handheld_medical/attack_self(mob/user) - crew_monitor.ui_interact(user) \ No newline at end of file + crew_monitor.ui_interact(user) diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm index 48baf7186d9..74e9b327f2c 100644 --- a/code/game/objects/items/devices/megaphone.dm +++ b/code/game/objects/items/devices/megaphone.dm @@ -3,7 +3,7 @@ desc = "A device used to project your voice. Loudly." icon_state = "megaphone" item_state = "megaphone" - w_class = 2.0 + w_class = ITEMSIZE_SMALL flags = CONDUCT var/spamcheck = 0 diff --git a/code/game/objects/items/devices/multitool.dm b/code/game/objects/items/devices/multitool.dm index d24cce6f80e..210aedc63f1 100644 --- a/code/game/objects/items/devices/multitool.dm +++ b/code/game/objects/items/devices/multitool.dm @@ -16,7 +16,7 @@ ) flags = CONDUCT force = 5.0 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throwforce = 5.0 throw_range = 15 throw_speed = 3 diff --git a/code/game/objects/items/devices/pin_extractor.dm b/code/game/objects/items/devices/pin_extractor.dm index 984eeee1d6f..87fb6f65946 100644 --- a/code/game/objects/items/devices/pin_extractor.dm +++ b/code/game/objects/items/devices/pin_extractor.dm @@ -4,7 +4,7 @@ icon = 'icons/obj/device.dmi' icon_state = "pin_extractor" item_state = "pin_extractor" - w_class = 2 + w_class = ITEMSIZE_SMALL flags = CONDUCT action_button_name = "Toggle extractor" var/on = 0 diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm index 4d67cf39032..df8fc6e4b23 100644 --- a/code/game/objects/items/devices/powersink.dm +++ b/code/game/objects/items/devices/powersink.dm @@ -5,7 +5,7 @@ desc = "A nulling power sink which drains energy from electrical systems." icon_state = "powersink0" item_state = "powersink0" - w_class = 4.0 + w_class = ITEMSIZE_LARGE flags = CONDUCT throwforce = 5 throw_speed = 1 diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm index f97fad9757d..3d254cb59ee 100644 --- a/code/game/objects/items/devices/radio/electropack.dm +++ b/code/game/objects/items/devices/radio/electropack.dm @@ -6,7 +6,7 @@ frequency = 1449 flags = CONDUCT slot_flags = SLOT_BACK - w_class = 5.0 + w_class = ITEMSIZE_HUGE matter = list(DEFAULT_WALL_MATERIAL = 10000, MATERIAL_GLASS = 2500) diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm index ba1ee6bc4e8..b7eba37d9b2 100644 --- a/code/game/objects/items/devices/radio/intercom.dm +++ b/code/game/objects/items/devices/radio/intercom.dm @@ -3,7 +3,7 @@ desc = "Talk through this." icon_state = "intercom" anchored = 1 - w_class = 4.0 + w_class = ITEMSIZE_LARGE canhear_range = 2 flags = CONDUCT | NOBLOODY var/number = 0 diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index ae2a1830045..6ebed0a65ee 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -45,7 +45,7 @@ var/global/list/default_medbay_channels = list( slot_flags = SLOT_BELT throw_speed = 2 throw_range = 9 - w_class = 2 + w_class = ITEMSIZE_SMALL matter = list(DEFAULT_WALL_MATERIAL = 75, MATERIAL_GLASS = 25) var/const/FREQ_LISTENING = TRUE var/list/internal_channels diff --git a/code/game/objects/items/devices/radio_jammer.dm b/code/game/objects/items/devices/radio_jammer.dm index 362f702f5bb..a62a6bb0143 100644 --- a/code/game/objects/items/devices/radio_jammer.dm +++ b/code/game/objects/items/devices/radio_jammer.dm @@ -14,7 +14,7 @@ proc/within_jamming_range(var/atom/test) // tests if an object is near a radio j desc = "A small, inconspicious looking item with an 'ON/OFF' toggle." icon = 'icons/obj/device.dmi' icon_state = "shield0" - w_class = 2 + w_class = ITEMSIZE_SMALL var/active = 0 var/radius = 7 diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 03828c28330..6a95380db4c 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -15,7 +15,7 @@ BREATH ANALYZER flags = CONDUCT slot_flags = SLOT_BELT throwforce = 3 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throw_speed = 5 throw_range = 10 matter = list(DEFAULT_WALL_MATERIAL = 200) @@ -302,7 +302,7 @@ BREATH ANALYZER desc = "A hand-held environmental scanner which reports current gas levels." icon_state = "atmos" item_state = "analyzer" - w_class = 2.0 + w_class = ITEMSIZE_SMALL flags = CONDUCT slot_flags = SLOT_BELT throwforce = 5 @@ -336,7 +336,7 @@ BREATH ANALYZER desc = "A hand-held mass spectrometer which identifies trace chemicals in a blood sample." icon_state = "spectrometer" item_state = "analyzer" - w_class = 2.0 + w_class = ITEMSIZE_SMALL flags = CONDUCT | OPENCONTAINER slot_flags = SLOT_BELT throwforce = 5 @@ -398,7 +398,7 @@ BREATH ANALYZER desc = "A hand-held reagent scanner which identifies chemical agents." icon_state = "spectrometer" item_state = "analyzer" - w_class = 2.0 + w_class = ITEMSIZE_SMALL flags = CONDUCT slot_flags = SLOT_BELT throwforce = 5 @@ -447,7 +447,7 @@ BREATH ANALYZER icon_state = "adv_spectrometer" item_state = "analyzer" origin_tech = list(TECH_BIO = 1) - w_class = 2.0 + w_class = ITEMSIZE_SMALL flags = CONDUCT throwforce = 0 throw_speed = 3 @@ -490,7 +490,7 @@ BREATH ANALYZER desc = "Using an up-to-date database of various costs and prices, this device estimates the market price of an item up to 0.001% accuracy." icon_state = "price_scanner" slot_flags = SLOT_BELT - w_class = 2 + w_class = ITEMSIZE_SMALL throwforce = 0 throw_speed = 3 throw_range = 3 @@ -509,7 +509,7 @@ BREATH ANALYZER desc = "A hand-held breath analyzer that provides a robust amount of information about the subject's repository system." icon_state = "breath_analyzer" item_state = "analyzer" - w_class = 2.0 + w_class = ITEMSIZE_SMALL flags = CONDUCT slot_flags = SLOT_BELT throwforce = 0 diff --git a/code/game/objects/items/devices/spy_bug.dm b/code/game/objects/items/devices/spy_bug.dm index 1153f0cb78b..49336593069 100644 --- a/code/game/objects/items/devices/spy_bug.dm +++ b/code/game/objects/items/devices/spy_bug.dm @@ -8,7 +8,7 @@ flags = CONDUCT force = 5.0 - w_class = 1.0 + w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS throwforce = 5.0 throw_range = 15 @@ -56,7 +56,7 @@ icon_state = "pda" item_state = "electronic" - w_class = 2.0 + w_class = ITEMSIZE_SMALL origin_tech = list(TECH_DATA = 1, TECH_ENGINEERING = 1, TECH_ILLEGAL = 3) diff --git a/code/game/objects/items/devices/suit_cooling.dm b/code/game/objects/items/devices/suit_cooling.dm index bd0d0c74930..22974f42fae 100644 --- a/code/game/objects/items/devices/suit_cooling.dm +++ b/code/game/objects/items/devices/suit_cooling.dm @@ -1,7 +1,7 @@ /obj/item/device/suit_cooling_unit name = "portable suit cooling unit" desc = "A portable heat sink and liquid cooled radiator that can be hooked up to a space suit's existing temperature controls to provide industrial levels of cooling." - w_class = 4 + w_class = ITEMSIZE_LARGE icon = 'icons/obj/suitcooler.dmi' icon_state = "suitcooler0" item_state = "coolingpack" @@ -223,4 +223,4 @@ to_chat(user, SPAN_NOTICE("It doesn't have a power cell installed.")) /obj/item/device/suit_cooling_unit/no_cell - celltype = null \ No newline at end of file + celltype = null diff --git a/code/game/objects/items/devices/t_scanner.dm b/code/game/objects/items/devices/t_scanner.dm index 9a73a8d72e1..faae6901159 100644 --- a/code/game/objects/items/devices/t_scanner.dm +++ b/code/game/objects/items/devices/t_scanner.dm @@ -5,7 +5,7 @@ desc = "A terahertz-ray emitter and scanner used to detect underfloor objects such as cables and pipes." icon_state = "t-ray0" slot_flags = SLOT_BELT - w_class = 2 + w_class = ITEMSIZE_SMALL item_state = "electronic" matter = list(DEFAULT_WALL_MATERIAL = 150) origin_tech = list(TECH_MAGNET = 1, TECH_ENGINEERING = 1) diff --git a/code/game/objects/items/devices/tagger.dm b/code/game/objects/items/devices/tagger.dm index ccd80e545fe..28cf17f74e7 100644 --- a/code/game/objects/items/devices/tagger.dm +++ b/code/game/objects/items/devices/tagger.dm @@ -5,7 +5,7 @@ desc = "Used for tagging animals to be identified by a ear tag." icon_state = "animal_tagger0" force = 5.0 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throwforce = 5.0 throw_range = 15 throw_speed = 3 diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 4fe8a64f040..1e58472222a 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -19,7 +19,7 @@ effective or pretty fucking useless. desc = "A strange device with twin antennas." icon_state = "batterer" throwforce = 5 - w_class = 1.0 + w_class = ITEMSIZE_TINY throw_speed = 4 throw_range = 10 flags = CONDUCT diff --git a/code/game/objects/items/devices/uplink.dm b/code/game/objects/items/devices/uplink.dm index c66b0ba2ebb..be9db2a0f8b 100644 --- a/code/game/objects/items/devices/uplink.dm +++ b/code/game/objects/items/devices/uplink.dm @@ -350,7 +350,7 @@ A list of items and costs is stored under the datum of every game mode, alongsid icon = 'icons/obj/radio.dmi' icon_state = "radio" flags = CONDUCT - w_class = 2 + w_class = ITEMSIZE_SMALL /obj/item/device/contract_uplink/New(var/loc, var/mind) ..() @@ -369,7 +369,7 @@ A list of items and costs is stored under the datum of every game mode, alongsid icon = 'icons/obj/device.dmi' icon_state = "locator" desc_antag = "This device allows you to create a single central command report. It has only one use." - w_class = 2 + w_class = ITEMSIZE_SMALL /obj/item/device/announcer/attack_self(mob/user as mob) if(!player_is_antag(user.mind)) @@ -421,4 +421,4 @@ A list of items and costs is stored under the datum of every game mode, alongsid name = "station bounced radio" desc = null // SBRs have no desc icon_state = "walkietalkie" // more incognito - starting_telecrystals = DEFAULT_TELECRYSTAL_AMOUNT * 2 \ No newline at end of file + starting_telecrystals = DEFAULT_TELECRYSTAL_AMOUNT * 2 diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm index 3600a5e0444..d7d0a759e7a 100644 --- a/code/game/objects/items/devices/whistle.dm +++ b/code/game/objects/items/devices/whistle.dm @@ -3,7 +3,7 @@ desc = "Used by obese officers to save their breath for running." icon_state = "voice0" item_state = "flashbang" //looks exactly like a flash (and nothing like a flashbang) - w_class = 1.0 + w_class = ITEMSIZE_TINY flags = CONDUCT var/use_message = "Halt! Security!" diff --git a/code/game/objects/items/eightball.dm b/code/game/objects/items/eightball.dm index c5d92e6983b..9882cf464c5 100644 --- a/code/game/objects/items/eightball.dm +++ b/code/game/objects/items/eightball.dm @@ -5,7 +5,7 @@ icon = 'icons/obj/toy.dmi' icon_state = "eightball" - w_class = 1 + w_class = ITEMSIZE_TINY var/shaking = FALSE var/on_cooldown = FALSE @@ -133,4 +133,4 @@ fixed_answer = pick(possible_answers) /obj/item/eightball/broken/get_answer() - return fixed_answer \ No newline at end of file + return fixed_answer diff --git a/code/game/objects/items/glassjar.dm b/code/game/objects/items/glassjar.dm index c020f569b78..087866a9f62 100644 --- a/code/game/objects/items/glassjar.dm +++ b/code/game/objects/items/glassjar.dm @@ -3,7 +3,7 @@ desc = "A glass jar. You can remove the lid and use it as a reagent container." icon = 'icons/obj/drinks.dmi' icon_state = "jar_lid" - w_class = 2 + w_class = ITEMSIZE_SMALL matter = list(MATERIAL_GLASS = 200) flags = NOBLUDGEON var/list/accept_mobs = list(/mob/living/simple_animal/lizard, /mob/living/simple_animal/rat) diff --git a/code/game/objects/items/latexballoon.dm b/code/game/objects/items/latexballoon.dm index 8e980ca7ac1..5e91667c233 100644 --- a/code/game/objects/items/latexballoon.dm +++ b/code/game/objects/items/latexballoon.dm @@ -5,7 +5,7 @@ item_state = "lgloves" force = 0 throwforce = 0 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throw_speed = 1 throw_range = 15 var/state diff --git a/code/game/objects/items/skrell.dm b/code/game/objects/items/skrell.dm index 85f785e5f98..aff02e09347 100644 --- a/code/game/objects/items/skrell.dm +++ b/code/game/objects/items/skrell.dm @@ -3,7 +3,7 @@ desc = "An antique and delicate looking instrument used to study the stars." icon = 'icons/obj/skrell_items.dmi' icon_state = "starscope" - w_class = 1 + w_class = ITEMSIZE_TINY matter = list(MATERIAL_GLASS = 200) drop_sound = 'sound/items/drop/glass.ogg' pickup_sound = 'sound/items/pickup/glass.ogg' @@ -83,7 +83,7 @@ desc = "A projector meant to help Federation Skrell feel like theyre carrying home with them wherever they go. It looks very complex." icon = 'icons/obj/skrell_items.dmi' icon_state = "projector" - w_class = 1 + w_class = ITEMSIZE_TINY matter = list(MATERIAL_GLASS = 200) drop_sound = 'sound/items/drop/glass.ogg' pickup_sound = 'sound/items/pickup/glass.ogg' diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm index 4677fb2a331..c8d3d52757f 100644 --- a/code/game/objects/items/stacks/medical.dm +++ b/code/game/objects/items/stacks/medical.dm @@ -19,7 +19,7 @@ Contains: pickup_sound = 'sound/items/pickup/cardboardbox.ogg' amount = 5 max_amount = 5 - w_class = 2 + w_class = ITEMSIZE_SMALL throw_speed = 4 throw_range = 20 var/heal_brute = 0 diff --git a/code/game/objects/items/stacks/telecrystal.dm b/code/game/objects/items/stacks/telecrystal.dm index 6d6de72bcc3..66bdc663d22 100644 --- a/code/game/objects/items/stacks/telecrystal.dm +++ b/code/game/objects/items/stacks/telecrystal.dm @@ -5,7 +5,7 @@ singular_name = "telecrystal" icon = 'icons/obj/telescience.dmi' icon_state = "telecrystal" - w_class = 1 + w_class = ITEMSIZE_TINY max_amount = 50 flags = NOBLUDGEON origin_tech = list(TECH_MATERIAL = 6, TECH_BLUESPACE = 4) diff --git a/code/game/objects/items/stacks/tiles/tile_types.dm b/code/game/objects/items/stacks/tiles/tile_types.dm index b83e405a55f..08037a32805 100644 --- a/code/game/objects/items/stacks/tiles/tile_types.dm +++ b/code/game/objects/items/stacks/tiles/tile_types.dm @@ -10,7 +10,7 @@ name = "tile" singular_name = "tile" desc = "A non-descript floor tile" - w_class = 3 + w_class = ITEMSIZE_NORMAL max_amount = 60 icon = 'icons/obj/stacks/tiles.dmi' item_icons = list( diff --git a/code/game/objects/items/stacks/wrap.dm b/code/game/objects/items/stacks/wrap.dm index f982f70562d..2b0ba8fffcb 100644 --- a/code/game/objects/items/stacks/wrap.dm +++ b/code/game/objects/items/stacks/wrap.dm @@ -17,7 +17,7 @@ if (!isturf(loc)) to_chat(user, SPAN_WARNING("The paper must be set down for you to wrap a gift!")) return - if (W.w_class < 4) + if (W.w_class < ITEMSIZE_LARGE) var/a_used = 2 * (src.w_class - 1) if (src.amount < a_used) to_chat(user, SPAN_WARNING("You need more paper!")) @@ -81,7 +81,7 @@ icon = 'icons/obj/stacks/wrap.dmi' icon_state = "deliveryPaper" desc = "A roll of paper used to enclose an object for delivery." - w_class = 3.0 + w_class = ITEMSIZE_NORMAL amount = 25.0 var/wrapping_tag = "Sorting Office" drop_sound = 'sound/items/drop/wrapper.ogg' @@ -187,6 +187,6 @@ icon = 'icons/obj/stacks/wrap.dmi' icon_state = "c_tube" throwforce = 1 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throw_speed = 4 throw_range = 5 diff --git a/code/game/objects/items/trash.dm b/code/game/objects/items/trash.dm index c137151d70b..667836f50ce 100644 --- a/code/game/objects/items/trash.dm +++ b/code/game/objects/items/trash.dm @@ -4,7 +4,7 @@ //Added by Jack Rost /obj/item/trash icon = 'icons/obj/trash.dmi' - w_class = 1.0 + w_class = ITEMSIZE_TINY item_icons = list( slot_l_hand_str = 'icons/mob/items/lefthand_food.dmi', slot_r_hand_str = 'icons/mob/items/righthand_food.dmi' @@ -207,4 +207,4 @@ /obj/item/trash/diona_bites name = "dionae bites" - icon_state = "dionaebitesempty" \ No newline at end of file + icon_state = "dionaebitesempty" diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index 7be17e70860..d3a70bb938a 100755 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -14,7 +14,7 @@ AI MODULES desc = "An AI Module for transmitting encrypted instructions to the AI." flags = CONDUCT force = 5.0 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throwforce = 5.0 throw_speed = 3 throw_range = 15 diff --git a/code/game/objects/items/weapons/RFD.dm b/code/game/objects/items/weapons/RFD.dm index c82e142b570..514889fd3b0 100644 --- a/code/game/objects/items/weapons/RFD.dm +++ b/code/game/objects/items/weapons/RFD.dm @@ -22,7 +22,7 @@ throwforce = 10.0 throw_speed = 1 throw_range = 5 - w_class = 3.0 + w_class = ITEMSIZE_NORMAL origin_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 2) matter = list(DEFAULT_WALL_MATERIAL = 50000) drop_sound = 'sound/items/drop/gun.ogg' @@ -127,7 +127,7 @@ icon = 'icons/obj/ammo.dmi' icon_state = "rfd" item_state = "rfdammo" - w_class = 2 + w_class = ITEMSIZE_SMALL origin_tech = list(TECH_MATERIAL = 2) matter = list(DEFAULT_WALL_MATERIAL = 30000, MATERIAL_GLASS = 15000) diff --git a/code/game/objects/items/weapons/autopsy.dm b/code/game/objects/items/weapons/autopsy.dm index ada3e43b70b..223ad387b3d 100644 --- a/code/game/objects/items/weapons/autopsy.dm +++ b/code/game/objects/items/weapons/autopsy.dm @@ -8,7 +8,7 @@ icon = 'icons/obj/device.dmi' icon_state = "autopsy" flags = CONDUCT - w_class = 2.0 + w_class = ITEMSIZE_SMALL origin_tech = list(TECH_MATERIAL = 1, TECH_BIO = 1) var/list/datum/autopsy_data_scanner/wdata = list() var/list/datum/autopsy_data_scanner/chemtraces = list() diff --git a/code/game/objects/items/weapons/candle.dm b/code/game/objects/items/weapons/candle.dm index c825887c783..ab5db7d0e78 100644 --- a/code/game/objects/items/weapons/candle.dm +++ b/code/game/objects/items/weapons/candle.dm @@ -6,7 +6,7 @@ item_state = "candle1" drop_sound = 'sound/items/drop/gloves.ogg' pickup_sound = 'sound/items/pickup/gloves.ogg' - w_class = 1 + w_class = ITEMSIZE_TINY light_color = "#E09D37" var/wax = 2000 diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 74d8ee88303..f4d462ef2f1 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -20,7 +20,7 @@ slot_l_hand_str = 'icons/mob/items/lefthand_card.dmi', slot_r_hand_str = 'icons/mob/items/righthand_card.dmi', ) - w_class = 1.0 + w_class = ITEMSIZE_TINY var/associated_account_number = 0 var/list/files = list( ) diff --git a/code/game/objects/items/weapons/chaplain_items.dm b/code/game/objects/items/weapons/chaplain_items.dm index c05ab3a86c7..10ebdb55941 100644 --- a/code/game/objects/items/weapons/chaplain_items.dm +++ b/code/game/objects/items/weapons/chaplain_items.dm @@ -11,7 +11,7 @@ throw_speed = 1 throw_range = 4 throwforce = 10 - w_class = 2 + w_class = ITEMSIZE_SMALL var/cooldown = 0 // floor tap cooldown var/static/list/nullchoices = list("Null Rod" = /obj/item/nullrod/, "Null Staff" = /obj/item/nullrod/staff, "Null Orb" = /obj/item/nullrod/orb, "Null Athame" = /obj/item/nullrod/athame) @@ -21,7 +21,7 @@ icon_state = "nullstaff" item_state = "nullstaff" slot_flags = SLOT_BELT | SLOT_BACK - w_class = 4 + w_class = ITEMSIZE_LARGE /obj/item/nullrod/orb name = "null sphere" diff --git a/code/game/objects/items/weapons/chewables.dm b/code/game/objects/items/weapons/chewables.dm index fcb5eb31332..71c1002c216 100644 --- a/code/game/objects/items/weapons/chewables.dm +++ b/code/game/objects/items/weapons/chewables.dm @@ -73,7 +73,7 @@ obj/item/clothing/mask/chewable/Destroy() throw_speed = 0.5 icon_state = "chew" type_butt = /obj/item/trash/spitwad - w_class = 1 + w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS | SLOT_MASK chem_volume = 50 chewtime = 300 @@ -139,7 +139,7 @@ obj/item/clothing/mask/chewable/Destroy() throw_speed = 0.5 icon_state = "chew" type_butt = /obj/item/trash/spitgum - w_class = 1 + w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS | SLOT_MASK chem_volume = 50 chewtime = 300 @@ -176,7 +176,7 @@ obj/item/clothing/mask/chewable/Destroy() icon_type = "gum stick" storage_type = "packaging" slot_flags = SLOT_EARS - w_class = 1 + w_class = ITEMSIZE_TINY starts_with = list(/obj/item/clothing/mask/chewable/candy/gum = 5) can_hold = list(/obj/item/clothing/mask/chewable/candy/gum, /obj/item/trash/spitgum) max_storage_space = 5 diff --git a/code/game/objects/items/weapons/cloaking_device.dm b/code/game/objects/items/weapons/cloaking_device.dm index 663f29d6204..8f5744da92b 100644 --- a/code/game/objects/items/weapons/cloaking_device.dm +++ b/code/game/objects/items/weapons/cloaking_device.dm @@ -14,7 +14,7 @@ throwforce = 10.0 throw_speed = 2 throw_range = 10 - w_class = 2.0 + w_class = ITEMSIZE_SMALL origin_tech = list(TECH_MAGNET = 3, TECH_ILLEGAL = 4) var/power_usage = 35000//A high powered cell allows 5 minutes of continuous usage diff --git a/code/game/objects/items/weapons/cosmetics.dm b/code/game/objects/items/weapons/cosmetics.dm index 2f5f9ba0ef9..4ab4be2dbee 100644 --- a/code/game/objects/items/weapons/cosmetics.dm +++ b/code/game/objects/items/weapons/cosmetics.dm @@ -4,7 +4,7 @@ desc = "A generic brand of lipstick." icon = 'icons/obj/cosmetics.dmi' icon_state = "lipstick" - w_class = 1.0 + w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS var/colour = "red" var/open = 0 @@ -75,7 +75,7 @@ /obj/item/haircomb //sparklysheep's comb name = "plastic comb" desc = "A pristine comb made from flexible plastic." - w_class = 1.0 + w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS icon = 'icons/obj/cosmetics.dmi' icon_state = "comb" @@ -93,7 +93,7 @@ desc = "The latest and greatest power razor born from the science of shaving." icon = 'icons/obj/weapons.dmi' icon_state = "razor" - w_class = 2 + w_class = ITEMSIZE_SMALL /obj/item/razor/proc/shave(mob/living/carbon/human/H, location) if(location == BP_HEAD) diff --git a/code/game/objects/items/weapons/dice.dm b/code/game/objects/items/weapons/dice.dm index f5daa0d492a..88a0547f4d6 100644 --- a/code/game/objects/items/weapons/dice.dm +++ b/code/game/objects/items/weapons/dice.dm @@ -3,7 +3,7 @@ desc = "A dice with six sides." icon = 'icons/obj/dice.dmi' icon_state = "d66" - w_class = 1 + w_class = ITEMSIZE_TINY var/base_icon = "d6" var/side_mult = 1 // Used for d100s. var/sides = 6 @@ -77,4 +77,4 @@ icon_state = "d10010" sides = 10 side_mult = 10 - base_icon = "d100" \ No newline at end of file + base_icon = "d100" diff --git a/code/game/objects/items/weapons/dna_injector.dm b/code/game/objects/items/weapons/dna_injector.dm index abce2e6f68f..c8d08b2e2d5 100644 --- a/code/game/objects/items/weapons/dna_injector.dm +++ b/code/game/objects/items/weapons/dna_injector.dm @@ -13,7 +13,7 @@ var/s_time = 10.0 throw_speed = 1 throw_range = 5 - w_class = 1.0 + w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS var/uses = 1 var/nofail diff --git a/code/game/objects/items/weapons/explosives.dm b/code/game/objects/items/weapons/explosives.dm index ac4799ce395..7283dd9b965 100644 --- a/code/game/objects/items/weapons/explosives.dm +++ b/code/game/objects/items/weapons/explosives.dm @@ -6,7 +6,7 @@ icon_state = "plastic-explosive0" item_state = "plasticx" flags = NOBLUDGEON - w_class = 2.0 + w_class = ITEMSIZE_SMALL origin_tech = list(TECH_ILLEGAL = 2) var/datum/wires/explosive/c4/wires = null var/timer = 10 @@ -138,4 +138,4 @@ if(R?.cell) R.cell.use(1000) can_deploy = TRUE - maptext = "Ready" \ No newline at end of file + maptext = "Ready" diff --git a/code/game/objects/items/weapons/extinguisher.dm b/code/game/objects/items/weapons/extinguisher.dm index c8f625f9ef7..2c02d005e74 100644 --- a/code/game/objects/items/weapons/extinguisher.dm +++ b/code/game/objects/items/weapons/extinguisher.dm @@ -7,7 +7,7 @@ hitsound = 'sound/weapons/smash.ogg' flags = CONDUCT | OPENCONTAINER throwforce = 8 - w_class = 4.0 // Don't want to give people free bluespace beakers. + w_class = ITEMSIZE_LARGE // Don't want to give people free bluespace beakers. throw_speed = 2 throw_range = 10 force = 8 @@ -89,7 +89,7 @@ hitsound = 'sound/weapons/smash.ogg' flags = CONDUCT throwforce = 10 - w_class = 3.0 + w_class = ITEMSIZE_NORMAL throw_speed = 2 throw_range = 10 force = 10.0 @@ -114,7 +114,7 @@ hitsound = null //it is much lighter, after all. flags = OPENCONTAINER throwforce = 2 - w_class = 2.0 + w_class = ITEMSIZE_SMALL force = 2.0 max_water = 60 spray_amount = 10 diff --git a/code/game/objects/items/weapons/flamethrower.dm b/code/game/objects/items/weapons/flamethrower.dm index 38fa093d2cd..7669c8d0624 100644 --- a/code/game/objects/items/weapons/flamethrower.dm +++ b/code/game/objects/items/weapons/flamethrower.dm @@ -10,7 +10,7 @@ throwforce = 10.0 throw_speed = 1 throw_range = 5 - w_class = 3.0 + w_class = ITEMSIZE_NORMAL origin_tech = list(TECH_COMBAT = 1, TECH_PHORON = 1) matter = list(DEFAULT_WALL_MATERIAL = 500) var/status = 0 diff --git a/code/game/objects/items/weapons/gift_wrappaper.dm b/code/game/objects/items/weapons/gift_wrappaper.dm index 436f5108d93..bd8b55ea5b5 100644 --- a/code/game/objects/items/weapons/gift_wrappaper.dm +++ b/code/game/objects/items/weapons/gift_wrappaper.dm @@ -20,7 +20,7 @@ ..() pixel_x = rand(-10,10) pixel_y = rand(-10,10) - if(w_class > 0 && w_class < 4) + if(w_class > 0 && w_class < ITEMSIZE_LARGE) icon_state = "gift[w_class]" else icon_state = "gift[pick(1, 2, 3)]" @@ -130,7 +130,7 @@ icon = 'icons/obj/items.dmi' icon_state = "gift1" item_state = "gift1" - w_class = 1 + w_class = ITEMSIZE_TINY /obj/item/xmasgift/Initialize() ..() @@ -231,7 +231,7 @@ /obj/item/xmasgift/medium icon_state = "gift2" item_state = "gift2" - w_class = 2 + w_class = ITEMSIZE_SMALL /obj/item/xmasgift/medium/attack_self(mob/user) var/gift_type = pick( @@ -301,7 +301,7 @@ /obj/item/xmasgift/large icon_state = "gift3" item_state = "gift3" - w_class = 3 + w_class = ITEMSIZE_NORMAL /obj/item/xmasgift/large/attack_self(mob/user) var/gift_type = pick( diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm index 513a7192e9b..101b106fa8d 100644 --- a/code/game/objects/items/weapons/grenades/chem_grenade.dm +++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm @@ -3,7 +3,7 @@ icon_state = "chemg" item_state = "chemg" desc = "A hand made chemical grenade." - w_class = 2.0 + w_class = ITEMSIZE_SMALL force = 2.0 det_time = null unacidable = 1 @@ -367,4 +367,4 @@ beakers += B1 beakers += B2 - icon_state = initial(icon_state) +"_locked" \ No newline at end of file + icon_state = initial(icon_state) +"_locked" diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm index 99ae9b783e9..7f740f9de09 100644 --- a/code/game/objects/items/weapons/grenades/grenade.dm +++ b/code/game/objects/items/weapons/grenades/grenade.dm @@ -1,7 +1,7 @@ /obj/item/grenade name = "grenade" desc = "A hand held grenade, with an adjustable timer." - w_class = 2.0 + w_class = ITEMSIZE_SMALL icon = 'icons/obj/grenade.dmi' item_icons = list( slot_l_hand_str = 'icons/mob/items/weapons/lefthand_grenade.dmi', diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm index 3736374ba7d..09825a746ca 100644 --- a/code/game/objects/items/weapons/handcuffs.dm +++ b/code/game/objects/items/weapons/handcuffs.dm @@ -7,7 +7,7 @@ flags = CONDUCT slot_flags = SLOT_BELT throwforce = 5 - w_class = 2.0 + w_class = ITEMSIZE_SMALL throw_speed = 2 throw_range = 5 origin_tech = list(TECH_MATERIAL = 1) diff --git a/code/game/objects/items/weapons/hydroponics.dm b/code/game/objects/items/weapons/hydroponics.dm index ae33fb8a904..3605bf1cf8a 100644 --- a/code/game/objects/items/weapons/hydroponics.dm +++ b/code/game/objects/items/weapons/hydroponics.dm @@ -11,7 +11,7 @@ var/mode = 1; //0 = pick one at a time, 1 = pick all on tile var/capacity = 500; //the number of seeds it can carry. slot_flags = SLOT_BELT - w_class = 1 + w_class = ITEMSIZE_TINY var/list/item_quants = list() /obj/item/seedbag/attack_self(mob/user as mob) diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm index 14e9f2c6033..1f8c6a479cc 100644 --- a/code/game/objects/items/weapons/implants/implant.dm +++ b/code/game/objects/items/weapons/implants/implant.dm @@ -6,7 +6,7 @@ name = "implant" icon = 'icons/obj/device.dmi' icon_state = "implant" - w_class = 1 + w_class = ITEMSIZE_TINY var/implanted = null var/mob/imp_in = null var/obj/item/organ/external/part = null diff --git a/code/game/objects/items/weapons/implants/implantcase.dm b/code/game/objects/items/weapons/implants/implantcase.dm index 7d1cb492cb8..49b2f572cb4 100644 --- a/code/game/objects/items/weapons/implants/implantcase.dm +++ b/code/game/objects/items/weapons/implants/implantcase.dm @@ -8,7 +8,7 @@ item_state = "implantcase" throw_speed = 1 throw_range = 5 - w_class = 1.0 + w_class = ITEMSIZE_TINY var/obj/item/implant/imp = null /obj/item/implantcase/proc/update() diff --git a/code/game/objects/items/weapons/implants/implanter.dm b/code/game/objects/items/weapons/implants/implanter.dm index 5ad9dd3e5a2..6ff142c92a9 100644 --- a/code/game/objects/items/weapons/implants/implanter.dm +++ b/code/game/objects/items/weapons/implants/implanter.dm @@ -9,7 +9,7 @@ item_state = "syringe_0" throw_speed = 1 throw_range = 5 - w_class = 2.0 + w_class = ITEMSIZE_SMALL matter = list(DEFAULT_WALL_MATERIAL = 320, MATERIAL_GLASS = 800) var/obj/item/implant/imp = null @@ -232,4 +232,4 @@ user.drop_from_inventory(I, src) update() return - ..() \ No newline at end of file + ..() diff --git a/code/game/objects/items/weapons/implants/implantpad.dm b/code/game/objects/items/weapons/implants/implantpad.dm index a595c38c7cb..bdc6e1f216c 100644 --- a/code/game/objects/items/weapons/implants/implantpad.dm +++ b/code/game/objects/items/weapons/implants/implantpad.dm @@ -8,7 +8,7 @@ item_state = "electronic" throw_speed = 1 throw_range = 5 - w_class = 2.0 + w_class = ITEMSIZE_SMALL var/obj/item/implantcase/case = null var/broadcasting = null var/listening = TRUE diff --git a/code/game/objects/items/weapons/improvised_components.dm b/code/game/objects/items/weapons/improvised_components.dm index d0231294967..50ab1c935fb 100644 --- a/code/game/objects/items/weapons/improvised_components.dm +++ b/code/game/objects/items/weapons/improvised_components.dm @@ -47,7 +47,7 @@ flags = CONDUCT force = 8 throwforce = 10 - w_class = 3 + w_class = ITEMSIZE_NORMAL attack_verb = list("hit", "bludgeoned", "whacked", "bonked") force_divisor = 0.1 thrown_force_divisor = 0.1 @@ -79,7 +79,7 @@ item_state = "rods" force = 5 throwforce = 3 - w_class = 4 + w_class = ITEMSIZE_LARGE attack_verb = list("hit", "bludgeoned", "whacked", "bonked") force_divisor = 0.1 thrown_force_divisor = 0.1 @@ -108,7 +108,7 @@ icon_state = "spearhead" force = 5 throwforce = 5 - w_class = 2 + w_class = ITEMSIZE_SMALL attack_verb = list("attacked", "poked") force_divisor = 0.1 thrown_force_divisor = 0.1 @@ -174,4 +174,4 @@ qdel(W) qdel(src) user.put_in_hands(complete) - return \ No newline at end of file + return diff --git a/code/game/objects/items/weapons/manuals.dm b/code/game/objects/items/weapons/manuals.dm index 8e571d28bd2..b32794072d3 100644 --- a/code/game/objects/items/weapons/manuals.dm +++ b/code/game/objects/items/weapons/manuals.dm @@ -1459,7 +1459,7 @@ item_state = "book4" title = "hadiist manifesto" author = "Al'Mari Hadii" - w_class = 2.0 + w_class = ITEMSIZE_SMALL dat = {"