w_class now uses defines

This commit is contained in:
Mervill
2016-12-01 21:33:14 -08:00
parent 79ff9a8f0b
commit 09ea5ad2e5
294 changed files with 666 additions and 663 deletions
@@ -10,14 +10,14 @@
hardware_flag = PROGRAM_LAPTOP
max_hardware_size = 2
w_class = 3
w_class = WEIGHT_CLASS_NORMAL
flags = HANDSLOW // No running around with open laptops in hands.
screen_on = 0 // Starts closed
var/start_open = 1 // unless this var is set to 1
var/icon_state_closed = "laptop-closed"
var/w_class_open = 4
var/w_class_open = WEIGHT_CLASS_BULKY
var/slowdown_open = 1
/obj/item/device/modular_computer/laptop/New()
@@ -7,6 +7,6 @@
icon_state_menu = "menu"
hardware_flag = PROGRAM_TABLET
max_hardware_size = 1
w_class = 2
w_class = WEIGHT_CLASS_SMALL
steel_sheet_cost = 1
slot_flags = SLOT_ID | SLOT_BELT
@@ -5,7 +5,7 @@
name = "processor board"
desc = "A standard CPU board used in most computers. It can run up to three programs simultaneously."
icon_state = "cpuboard"
w_class = 2
w_class = WEIGHT_CLASS_SMALL
power_usage = 50
critical = 1
malfunction_probability = 1
@@ -20,7 +20,7 @@
name = "microprocessor"
desc = "A miniaturised CPU used in portable devices. It can run up to two programs simultaneously."
icon_state = "cpu"
w_class = 1
w_class = WEIGHT_CLASS_TINY
power_usage = 25
max_idle_programs = 1
origin_tech = "programming=2;engineering=2"
@@ -29,7 +29,7 @@
name = "photonic processor board"
desc = "An advanced experimental CPU board that uses photonic core instead of regular circuitry. It can run up to five programs simultaneously, but uses a lot of power."
icon_state = "cpuboard_super"
w_class = 2
w_class = WEIGHT_CLASS_SMALL
power_usage = 250
max_idle_programs = 4
origin_tech = "programming=5;engineering=4"
@@ -38,7 +38,7 @@
name = "photonic microprocessor"
desc = "An advanced miniaturised CPU for use in portable devices. It uses photonic core instead of regular circuitry. It can run up to three programs simultaneously."
icon_state = "cpu_super"
w_class = 1
w_class = WEIGHT_CLASS_TINY
power_usage = 75
max_idle_programs = 2
origin_tech = "programming=4;engineering=3"
@@ -4,7 +4,7 @@
icon = 'icons/obj/module.dmi'
icon_state = "std_mod"
w_class = 1 // w_class limits which devices can contain this component.
w_class = WEIGHT_CLASS_TINY // w_class limits which devices can contain this component.
// 1: PDAs/Tablets, 2: Laptops, 3-4: Consoles only
var/obj/item/device/modular_computer/holder = null
// Computer that holds this hardware, if any.
@@ -3,7 +3,7 @@
desc = "A module allowing this computer to interface with most common intelliCard modules. Necessary for some programs to run properly."
power_usage = 100 //W
icon_state = "card_mini"
w_class = 2
w_class = WEIGHT_CLASS_SMALL
origin_tech = "programming=2"
device_type = MC_AI
@@ -66,7 +66,7 @@
icon = 'icons/obj/module.dmi'
icon_state = "cell_mini"
origin_tech = "powerstorage=2;engineering=1"
w_class = 1
w_class = WEIGHT_CLASS_TINY
maxcharge = 750
@@ -75,7 +75,7 @@
desc = "An advanced power cell, often used in most laptops. It is too large to be fitted into smaller devices."
icon_state = "cell"
origin_tech = "powerstorage=2;engineering=2"
w_class = 2
w_class = WEIGHT_CLASS_SMALL
maxcharge = 1500
/obj/item/weapon/stock_parts/cell/computer/super
@@ -83,7 +83,7 @@
desc = "An advanced power cell, often used in high-end laptops."
icon_state = "cell"
origin_tech = "powerstorage=3;engineering=3"
w_class = 2
w_class = WEIGHT_CLASS_SMALL
maxcharge = 2000
/obj/item/weapon/stock_parts/cell/computer/micro
@@ -3,7 +3,7 @@
desc = "A module allowing this computer to read or write data on ID cards. Necessary for some programs to run properly."
power_usage = 10 //W
icon_state = "card_mini"
w_class = 1
w_class = WEIGHT_CLASS_TINY
origin_tech = "programming=2"
device_type = MC_CARD
@@ -4,7 +4,7 @@
power_usage = 25
icon_state = "harddisk_mini"
critical = 1
w_class = 1
w_class = WEIGHT_CLASS_TINY
origin_tech = "programming=1;engineering=1"
device_type = MC_HDD
var/max_capacity = 128
@@ -133,7 +133,7 @@
origin_tech = "programming=2;engineering=2"
power_usage = 50 // Hybrid, medium capacity and medium power storage
icon_state = "harddisk_mini"
w_class = 2
w_class = WEIGHT_CLASS_SMALL
/obj/item/weapon/computer_hardware/hard_drive/super
name = "super hard disk drive"
@@ -142,7 +142,7 @@
origin_tech = "programming=3;engineering=3"
power_usage = 100 // High-capacity but uses lots of power, shortening battery life. Best used with APC link.
icon_state = "harddisk_mini"
w_class = 2
w_class = WEIGHT_CLASS_SMALL
/obj/item/weapon/computer_hardware/hard_drive/cluster
name = "cluster hard disk drive"
@@ -151,7 +151,7 @@
origin_tech = "programming=4;engineering=4"
max_capacity = 2048
icon_state = "harddisk"
w_class = 3
w_class = WEIGHT_CLASS_NORMAL
// For tablets, etc. - highly power efficient.
/obj/item/weapon/computer_hardware/hard_drive/small
@@ -161,7 +161,7 @@
origin_tech = "programming=2;engineering=2"
max_capacity = 64
icon_state = "ssd_mini"
w_class = 1
w_class = WEIGHT_CLASS_TINY
/obj/item/weapon/computer_hardware/hard_drive/micro
name = "micro solid state drive"
@@ -170,4 +170,4 @@
origin_tech = "programming=1;engineering=1"
max_capacity = 32
icon_state = "ssd_micro"
w_class = 1
w_class = WEIGHT_CLASS_TINY
@@ -70,7 +70,7 @@ var/global/ntnet_card_uid = 1
origin_tech = "programming=4;engineering=2"
power_usage = 100 // Better range but higher power usage.
icon_state = "radio"
w_class = 1
w_class = WEIGHT_CLASS_TINY
/obj/item/weapon/computer_hardware/network_card/wired
name = "wired network card"
@@ -79,4 +79,4 @@ var/global/ntnet_card_uid = 1
origin_tech = "programming=5;engineering=3"
power_usage = 100 // Better range but higher power usage.
icon_state = "net_wired"
w_class = 3
w_class = WEIGHT_CLASS_NORMAL
@@ -3,7 +3,7 @@
desc = "Removable disk used to store data."
power_usage = 10
icon_state = "datadisk6"
w_class = 1
w_class = WEIGHT_CLASS_TINY
critical = 0
max_capacity = 16
origin_tech = "programming=1"
@@ -4,7 +4,7 @@
power_usage = 100
origin_tech = "programming=2;engineering=2"
icon_state = "printer"
w_class = 3
w_class = WEIGHT_CLASS_NORMAL
device_type = MC_PRINT
var/stored_paper = 20
var/max_paper = 30
@@ -58,6 +58,6 @@
desc = "A small printer with paper recycling module."
power_usage = 50
icon_state = "printer_mini"
w_class = 1
w_class = WEIGHT_CLASS_TINY
stored_paper = 5
max_paper = 15
@@ -27,7 +27,7 @@
name = "area power connector"
desc = "A device that wirelessly recharges connected device from nearby APC."
icon_state = "charger_APC"
w_class = 2 // Can't be installed into tablets/PDAs
w_class = WEIGHT_CLASS_SMALL // Can't be installed into tablets/PDAs
origin_tech = "programming=2;engineering=2;powerstorage=3"
/obj/item/weapon/computer_hardware/recharger/APC/use_power(amount, charging=0)
@@ -51,7 +51,7 @@
name = "wired power connector"
desc = "A power connector that recharges connected device from nearby power wire. Incompatible with portable computers."
icon_state = "charger_wire"
w_class = 3
w_class = WEIGHT_CLASS_NORMAL
origin_tech = "engineering=2;powerstorage=1"
/obj/item/weapon/computer_hardware/recharger/wired/can_install(obj/item/device/modular_computer/M, mob/living/user = null)
@@ -86,7 +86,7 @@
name = "lambda coil"
desc = "A very complex device that draws power from its own bluespace dimension."
icon_state = "charger_lambda"
w_class = 1
w_class = WEIGHT_CLASS_TINY
charge_rate = 100000
/obj/item/weapon/computer_hardware/recharger/lambda/use_power(amount, charging=0)