tgstation/-tg-station — pull request #409 by SuperSayu (2013-04-19 07:00:00+00:00)
Title: Item tree update

The python script I used to do this reorganization is in tools/pathchange, along with the master file which it ran against. It runs pretty quickly, considering the hours I took doing it the first time.

The final item tree gets all non-weapons out of ob/item/weapon and all items out of obj/item and into subtrees. It is organized this way:

item/botany: seeds, non-food grown items, and botany tools
item/chem: item/weapon/reagent_containers
item/clothing: now contains air tanks in item/clothing/tank. Also contains plastanks.
item/device: a couple things moved here
item/effect: grabs and telekinetic grabs
item/kitchen: kitchen knives, trays,utensils.
item/magic: supernatural crap, including nullrod
item/medical: organs, alien parts, implants, and medical tools
item/mining: ore, pickaxes, shovels
item/money: coins, cash, and moneybags
item/office: office supplies, disks, books, contraband posters
item/part: assemblies, circuitboards, other electronics, stacks, parts, pipes, cells, encryption keys (now called ciphers), cyborg parts, mech parts, building frames, etc
item/security: cameras, flashes, ID/emag cards, cuffs, voice recorders, etc
item/service: bedsheets, wet floor signs, gifts, giftwrap, soap, razors, violins, etc
item/slime: contains slime potions and extracts
item/storage: item/weapon/storage
item/tool: basic tool types, lighters, matches, candles, extinguishers, etc
item/toy: moved a couple others in, notably bikehorn *gets lynched* latex ballon still misspelled.
item/trash: moved a couple things in, including sord (incredibly shitty) and broken bottles
item/weapon: OH MY GOD IT CONTAINS WEAPONS

Here is the total list of path changes:

obj/item/alarm_frame -> obj/item/part/frame/air_alarm
obj/item/alien_embryo -> obj/item/medical/alien/embryo
obj/item/ammo_casing -> obj/item/weapon/ammo/casing
obj/item/ammo_magazine -> obj/item/weapon/ammo/magazine
obj/item/apc_frame -> obj/item/part/frame/apc
obj/item/assembly/shock_kit -> obj/item/part/shock_kit
obj/item/blueprints -> obj/item/office/blueprints
obj/item/bodybag -> obj/item/medical/bodybag
obj/item/borg -> obj/item/part/cyborg/equipment
obj/item/candle -> obj/item/tool/candle
obj/item/device/analyzer/plant_analyzer -> obj/item/device/scanner/plant
obj/item/device/am_shielding_container -> obj/item/device/antimatter/shielding
obj/item/device/analyzer -> obj/item/device/scanner/atmospheric
obj/item/device/assembly_holder -> obj/item/part/assembly_holder
obj/item/device/assembly -> obj/item/part/assembly
obj/item/device/batterer -> obj/item/security/mind_batterer
obj/item/device/camera -> obj/item/security/camera
obj/item/device/camera_film -> obj/item/security/film
obj/item/device/destTagger -> obj/item/office/mail_tagger
obj/item/device/detective_scanner -> obj/item/device/scanner/forensic
obj/item/device/encryptionkey -> obj/item/part/cipher
obj/item/device/flashlight -> obj/item/tool/flashlight
obj/item/device/flash -> obj/item/security/flash
obj/item/device/healthanalyzer -> obj/item/device/scanner/health
obj/item/device/lightreplacer -> obj/item/service/lightreplacer
obj/item/device/mass_spectrometer -> obj/item/device/scanner/blood
obj/item/device/mmi -> obj/item/medical/mmi
obj/item/device/multitool -> obj/item/tool/multitool
obj/item/device/onetankbomb -> obj/item/weapon/onetankbomb
obj/item/device/soulstone -> obj/item/magic/soulstone
obj/item/device/taperecorder -> obj/item/security/recorder
obj/item/device/t_scanner -> obj/item/device/scanner/t_ray
obj/item/device/toner -> obj/item/part/refill/toner
obj/item/device/transfer_valve -> obj/item/part/transfer_valve
obj/item/device/violin -> obj/item/service/violin
obj/item/firealarm_frame -> obj/item/part/frame/fire_alarm
obj/item/hand_labeler_refill -> obj/item/part/refill/labeler
obj/item/key -> obj/item/service/key
obj/item/latexballon -> obj/item/toy/latexballon
obj/item/light_fixture_frame -> obj/item/part/frame/light
obj/item/mecha_parts -> obj/item/part/mecha
obj/item/missile -> obj/item/weapon/missile
obj/item/nutrient -> obj/item/botany/nutrient
obj/item/organ -> obj/item/medical/organ
obj/item/pestkiller -> obj/item/botany/pestkiller
obj/item/pipe -> obj/item/part/pipe
obj/item/pipe_meter -> obj/item/part/pipe_meter
obj/item/pizzabox -> obj/item/service/pizzabox
obj/item/projectile -> obj/item/weapon/projectile
obj/item/radio -> obj/item/part/radio
obj/item/robot_parts -> obj/item/part/cyborg
obj/item/seeds -> obj/item/botany/seeds
obj/item/slime_extract -> obj/item/slime/extract
obj/item/smallDelivery -> obj/item/office/package
obj/item/solar_assembly -> obj/item/part/frame/solar
obj/item/stack -> obj/item/part/stack
obj/item/target -> obj/item/part/target
obj/item/tk_grab -> obj/item/effect/telekinesis
obj/item/weapon/SWF_uplink -> obj/item/device/SWF_uplink
obj/item/weapon/a_gift -> obj/item/service/gift
obj/item/weapon/aiModule -> obj/item/part/board/aiModule
obj/item/weapon/airalarm_electronics -> obj/item/part/board/air_alarm
obj/item/weapon/airlock_electronics -> obj/item/part/board/airlock
obj/item/weapon/airlock_painter -> obj/item/tool/airlock_painter
obj/item/weapon/am_containment -> obj/item/device/antimatter/containment
obj/item/weapon/bananapeel -> obj/item/trash/bananapeel
obj/item/weapon/banhammer -> obj/item/toy/banhammer
obj/item/weapon/barcodescanner -> obj/item/device/scanner/book
obj/item/weapon/beach_ball -> obj/item/toy/beach_ball
obj/item/weapon/bedsheet -> obj/item/service/bedsheet
obj/item/weapon/bikehorn -> obj/item/toy/bikehorn
obj/item/weapon/book -> obj/item/office/book
obj/item/weapon/broken_bottle -> obj/item/trash/bottle
obj/item/weapon/bucket_sensor -> obj/item/part/frame/cleanbot
obj/item/weapon/butch -> obj/item/kitchen/butch
obj/item/weapon/c_tube -> obj/item/trash/c_tube
obj/item/weapon/cable_coil -> obj/item/part/cable_coil
obj/item/weapon/camera_assembly -> obj/item/part/frame/camera
obj/item/weapon/camera_bug -> obj/item/security/camera_bug
obj/item/weapon/cane -> obj/item/toy/cane
obj/item/weapon/card -> obj/item/security/card
obj/item/weapon/cartridge -> obj/item/part/cartridge
obj/item/weapon/cautery -> obj/item/medical/cautery
obj/item/weapon/caution -> obj/item/service/caution
obj/item/weapon/cell -> obj/item/part/cell
obj/item/weapon/cigbutt -> obj/item/trash/cigbutt
obj/item/weapon/circuitboard -> obj/item/part/circuitboard
obj/item/weapon/circular_saw -> obj/item/medical/saw
obj/item/weapon/clipboard -> obj/item/office/clipboard
obj/item/weapon/cloaking_device -> obj/item/device/cloaking
obj/item/weapon/coin -> obj/item/money/coin
obj/item/weapon/contraband -> obj/item/office/contraband
obj/item/weapon/contract -> obj/item/magic/scroll/contract
obj/item/weapon/corncob -> obj/item/trash/corncob
obj/item/weapon/crowbar -> obj/item/tool/crowbar
obj/item/weapon/dice -> obj/item/toy/dice
obj/item/weapon/disk -> obj/item/office/disk
obj/item/weapon/dnainjector -> obj/item/medical/dnainjector
obj/item/weapon/dummy -> obj/effect/passcheck
obj/item/weapon/ectoplasm -> obj/item/trash/ectoplasm
obj/item/weapon/ed209_assembly -> obj/item/part/frame/ed209
obj/item/weapon/evidencebag -> obj/item/security/evidence
obj/item/weapon/extinguisher -> obj/item/tool/extinguisher
obj/item/weapon/firealarm_electronics -> obj/item/part/board/fire_alarm
obj/item/weapon/firstaid_arm_assembly -> obj/item/part/frame/medbot
obj/item/weapon/folder -> obj/item/office/folder
obj/item/weapon/grab -> obj/item/effect/grab
obj/item/weapon/grown -> obj/item/botany/grown
obj/item/weapon/handcuffs -> obj/item/security/handcuffs
obj/item/weapon/hand_labeler -> obj/item/office/labeler
obj/item/weapon/hand_tele -> obj/item/device/teleporter
obj/item/weapon/hatchet -> obj/item/botany/hatchet
obj/item/weapon/hemostat -> obj/item/medical/hemostat
obj/item/weapon/implantcase -> obj/item/medical/implantcase
obj/item/weapon/implant -> obj/item/medical/implant
obj/item/weapon/implanter -> obj/item/medical/implanter
obj/item/weapon/implantpad -> obj/item/device/implantpad
obj/item/weapon/kitchenknife -> obj/item/kitchen/knife
obj/item/weapon/kitchen -> obj/item/kitchen
obj/item/weapon/legcuffs -> obj/item/security/legcuffs
obj/item/weapon/lighter -> obj/item/tool/lighter
obj/item/weapon/light -> obj/item/part/light
obj/item/weapon/lipstick -> obj/item/service/lipstick
obj/item/weapon/locator -> obj/item/device/locator
obj/item/weapon/match -> obj/item/tool/match
obj/item/weapon/minihoe -> obj/item/botany/minihoe
obj/item/weapon/module -> obj/item/part/board/module
obj/item/weapon/moneybag -> obj/item/money/bag
obj/item/weapon/mop -> obj/item/service/mop
obj/item/weapon/newspaper -> obj/item/office/newspaper
obj/item/weapon/nullrod -> obj/item/magic/nullrod
obj/item/weapon/ore -> obj/item/mining/ore
obj/item/weapon/packageWrap -> obj/item/office/package_wrap
obj/item/weapon/pai_cable -> obj/item/device/pai_cable
obj/item/weapon/paint -> obj/item/service/paint
obj/item/weapon/paper_bin -> obj/item/office/bin
obj/item/weapon/paper -> obj/item/office/paper
obj/item/weapon/pen -> obj/item/office/pen
obj/item/weapon/pestspray -> obj/item/botany/pestspray
obj/item/weapon/phone -> obj/item/office/phone
obj/item/weapon/photo -> obj/item/office/photo
obj/item/weapon/pickaxe -> obj/item/mining/pickaxe
obj/item/weapon/pinpointer -> obj/item/device/pinpointer
obj/item/weapon/rack_parts -> obj/item/part/rack
obj/item/weapon/razor -> obj/item/service/razor
obj/item/weapon/rcd_ammo -> obj/item/part/refill/rcd
obj/item/weapon/rcd -> obj/item/tool/rcd
obj/item/weapon/reagent_containers -> obj/item/chem
obj/item/weapon/research -> obj/item/magic/research
obj/item/weapon/retractor -> obj/item/medical/retractor
obj/item/weapon/robot_module -> obj/item/part/cyborg/module
obj/item/weapon/rsf -> obj/item/service/rsf
obj/item/weapon/rsp -> obj/item/botany/rsp
obj/item/weapon/scalpel -> obj/item/medical/scalpel
obj/item/weapon/screwdriver -> obj/item/tool/screwdriver
obj/item/weapon/scrying -> obj/item/magic/scrying
obj/item/weapon/scythe -> obj/item/botany/scythe
obj/item/weapon/secbot_assembly -> obj/item/part/frame/secbot
obj/item/weapon/shard -> obj/item/trash/shard
obj/item/weapon/shovel -> obj/item/mining/shovel
obj/item/weapon/slimepotion -> obj/item/slime/potion
obj/item/weapon/slimepotion2 -> obj/item/slime/potion2
obj/item/weapon/slimesteroid -> obj/item/slime/steroid
obj/item/weapon/slimesteroid2 -> obj/item/slime/steroid2
obj/item/weapon/soap -> obj/item/service/soap
obj/item/weapon/sord -> obj/item/trash/sord
obj/item/weapon/spacecash -> obj/item/money/cash
obj/item/weapon/spellbook -> obj/item/magic/spellbook
obj/item/weapon/staff -> obj/item/magic/staff
obj/item/weapon/stamp -> obj/item/office/stamp
obj/item/weapon/stock_parts -> obj/item/part/basic
obj/item/weapon/storage -> obj/item/storage
obj/item/weapon/surgical_drapes -> obj/item/medical/drapes
obj/item/weapon/surgicaldrill -> obj/item/medical/drill
obj/item/weapon/syntiflesh -> obj/item/trash/syntiflesh
obj/item/weapon/table_parts -> obj/item/part/table
obj/item/weapon/tank -> obj/item/clothing/tank
obj/item/weapon/teleportation_scroll -> obj/item/magic/scroll/tele
obj/item/weapon/tome -> obj/item/magic/tome
obj/item/weapon/toolbox_tiles -> obj/item/part/frame/floorbot/stage_1
obj/item/weapon/toolbox_tiles_sensor -> obj/item/part/frame/floorbot/stage_2
obj/item/weapon/toy -> obj/item/toy
obj/item/weapon/tracker_electronics -> obj/item/part/board/solar_tracker
obj/item/weapon/tray -> obj/item/kitchen/tray
obj/item/weapon/weedspray -> obj/item/botany/weedspray
obj/item/weapon/weldingtool -> obj/item/tool/welder
obj/item/weapon/wire -> obj/item/part/wire
obj/item/weapon/wirecutters -> obj/item/tool/wirecutters
obj/item/weapon/wrapping_paper -> obj/item/service/gift_wrap
obj/item/weapon/wrench -> obj/item/tool/wrench
obj/item/weed_extract -> obj/item/medical/alien/weeds
obj/item/weedkiller -> obj/item/botany/weedkiller
obj/item/xenos_claw -> obj/item/medical/alien/claw