Code formatting, EOL at EOF fixes, refactoring

This commit is contained in:
Amunak
2014-12-18 03:11:49 +01:00
parent edffbc680d
commit 4882074739
137 changed files with 197 additions and 243 deletions

View File

@@ -5,9 +5,9 @@
*/ */
/obj/item/device/debugger /obj/item/device/debugger
icon = 'icons/obj/hacktool.dmi'
name = "debugger" name = "debugger"
desc = "Used to debug electronic equipment." desc = "Used to debug electronic equipment."
icon = 'icons/obj/hacktool.dmi'
icon_state = "hacktool-g" icon_state = "hacktool-g"
flags = FPRINT | TABLEPASS| CONDUCT flags = FPRINT | TABLEPASS| CONDUCT
force = 5.0 force = 5.0

View File

@@ -1,8 +1,8 @@
// Powersink - used to drain station power // Powersink - used to drain station power
/obj/item/device/powersink /obj/item/device/powersink
desc = "A nulling power sink which drains energy from electrical systems."
name = "power sink" name = "power sink"
desc = "A nulling power sink which drains energy from electrical systems."
icon_state = "powersink0" icon_state = "powersink0"
item_state = "electronic" item_state = "electronic"
w_class = 4.0 w_class = 4.0

View File

@@ -1,6 +1,6 @@
/obj/item/device/taperecorder /obj/item/device/taperecorder
desc = "A device that can record up to an hour of dialogue and play it back. It automatically translates the content in playback."
name = "universal recorder" name = "universal recorder"
desc = "A device that can record up to an hour of dialogue and play it back. It automatically translates the content in playback."
icon_state = "taperecorderidle" icon_state = "taperecorderidle"
item_state = "analyzer" item_state = "analyzer"
w_class = 2.0 w_class = 2.0

View File

@@ -29,7 +29,6 @@ effective or pretty fucking useless.
var/times_used = 0 //Number of times it's been used. var/times_used = 0 //Number of times it's been used.
var/max_uses = 2 var/max_uses = 2
/obj/item/device/batterer/attack_self(mob/living/carbon/user as mob, flag = 0, emp = 0) /obj/item/device/batterer/attack_self(mob/living/carbon/user as mob, flag = 0, emp = 0)
if(!user) return if(!user) return
if(times_used >= max_uses) if(times_used >= max_uses)
@@ -55,7 +54,3 @@ effective or pretty fucking useless.
times_used += 1 times_used += 1
if(times_used >= max_uses) if(times_used >= max_uses)
icon_state = "battererburnt" icon_state = "battererburnt"

View File

@@ -1,8 +1,8 @@
/obj/item/device/transfer_valve /obj/item/device/transfer_valve
icon = 'icons/obj/assemblies.dmi'
name = "tank transfer valve" name = "tank transfer valve"
icon_state = "valve_1"
desc = "Regulates the transfer of air between two tanks" desc = "Regulates the transfer of air between two tanks"
icon = 'icons/obj/assemblies.dmi'
icon_state = "valve_1"
var/obj/item/weapon/tank/tank_one var/obj/item/weapon/tank/tank_one
var/obj/item/weapon/tank/tank_two var/obj/item/weapon/tank/tank_two
var/obj/item/device/attached_device var/obj/item/device/attached_device

View File

@@ -113,7 +113,7 @@
* Fake singularity * Fake singularity
*/ */
/obj/item/toy/spinningtoy /obj/item/toy/spinningtoy
name = "Gravitational Singularity" name = "gravitational singularity"
desc = "\"Singulo\" brand spinning toy." desc = "\"Singulo\" brand spinning toy."
icon = 'icons/obj/singularity.dmi' icon = 'icons/obj/singularity.dmi'
icon_state = "singularity_s1" icon_state = "singularity_s1"
@@ -420,7 +420,7 @@
* Water flower * Water flower
*/ */
/obj/item/toy/waterflower /obj/item/toy/waterflower
name = "Water Flower" name = "water flower"
desc = "A seemingly innocent sunflower...with a twist." desc = "A seemingly innocent sunflower...with a twist."
icon = 'icons/obj/harvest.dmi' icon = 'icons/obj/harvest.dmi'
icon_state = "sunflower" icon_state = "sunflower"

View File

@@ -2,56 +2,71 @@
//TODO: Make this an item var or something... //TODO: Make this an item var or something...
//Added by Jack Rost //Added by Jack Rost
/obj/item/trash obj/item/trash
icon = 'icons/obj/trash.dmi' icon = 'iconsobj/trash.dmi'
w_class = 2.0 w_class = 2.0
desc = "This is rubbish." desc = "This is rubbish."
raisins
name = "4no raisins" obj/item/trash/raisins
name = "\improper 4no raisins"
icon_state= "4no_raisins" icon_state= "4no_raisins"
candy
name = "Candy" obj/item/trash/candy
name = "candy"
icon_state= "candy" icon_state= "candy"
cheesie
name = "Cheesie honkers" obj/item/trash/cheesie
name = "\improper Cheesie Honkers"
icon_state = "cheesie_honkers" icon_state = "cheesie_honkers"
chips
name = "Chips" obj/item/trash/chips
name = "chips"
icon_state = "chips" icon_state = "chips"
popcorn
name = "Popcorn" obj/item/trash/popcorn
name = "popcorn"
icon_state = "popcorn" icon_state = "popcorn"
sosjerky
obj/item/trash/sosjerky
name = "Scaredy's Private Reserve Beef Jerky" name = "Scaredy's Private Reserve Beef Jerky"
icon_state = "sosjerky" icon_state = "sosjerky"
syndi_cakes
name = "Syndi cakes" obj/item/trash/syndi_cakes
name = "syndi cakes"
icon_state = "syndi_cakes" icon_state = "syndi_cakes"
waffles
name = "Waffles" obj/item/trash/waffles
name = "waffles"
icon_state = "waffles" icon_state = "waffles"
plate
name = "Plate" obj/item/trash/plate
name = "plate"
icon_state = "plate" icon_state = "plate"
snack_bowl
name = "Snack bowl" obj/item/trash/snack_bowl
name = "snack bowl"
icon_state = "snack_bowl" icon_state = "snack_bowl"
pistachios
name = "Pistachios pack" obj/item/trash/pistachios
name = "pistachios pack"
icon_state = "pistachios_pack" icon_state = "pistachios_pack"
semki
name = "Semki pack" obj/item/trash/semki
name = "semki pack"
icon_state = "semki_pack" icon_state = "semki_pack"
tray
name = "Tray" obj/item/trash/tray
name = "tray"
icon_state = "tray" icon_state = "tray"
candle
obj/item/trash/candle
name = "candle" name = "candle"
icon = 'icons/obj/candle.dmi' icon = 'iconsobj/candle.dmi'
icon_state = "candle4" icon_state = "candle4"
liquidfood
obj/item/trash/liquidfood
name = "\improper \"LiquidFood\" ration" name = "\improper \"LiquidFood\" ration"
icon_state = "liquidfood" icon_state = "liquidfood"
/obj/item/trash/attack(mob/M as mob, mob/living/user as mob) obj/item/trash/attack(mob/M as mob, mob/living/user as mob)
return return

View File

@@ -1,6 +1,6 @@
//Contains the rapid construction device. //Contains the rapid construction device.
/obj/item/weapon/rcd /obj/item/weapon/rcd
name = "rapid-construction-device (RCD)" name = "rapid construction device (RCD)"
desc = "A device used to rapidly build walls and floors." desc = "A device used to rapidly build walls and floors."
icon = 'icons/obj/items.dmi' icon = 'icons/obj/items.dmi'
icon_state = "rcd" icon_state = "rcd"

View File

@@ -9,4 +9,3 @@
if(empulse(src, 4, 10)) if(empulse(src, 4, 10))
del(src) del(src)
return return

View File

@@ -67,5 +67,3 @@ mechanisms<BR>
life can drive down to only 1 use.<HR> life can drive down to only 1 use.<HR>
No Implant Specifics"} No Implant Specifics"}
return dat return dat

View File

@@ -134,4 +134,3 @@
return return
else else
return ..() return ..()

View File

@@ -172,5 +172,3 @@ Frequency:
P.creator = src P.creator = src
src.add_fingerprint(user) src.add_fingerprint(user)
return return

View File

@@ -394,20 +394,20 @@
/obj/item/weapon/weldingtool/largetank /obj/item/weapon/weldingtool/largetank
name = "Industrial Welding Tool" name = "industrial welding tool"
max_fuel = 40 max_fuel = 40
matter = list("metal" = 70, "glass" = 60) matter = list("metal" = 70, "glass" = 60)
origin_tech = "engineering=2" origin_tech = "engineering=2"
/obj/item/weapon/weldingtool/hugetank /obj/item/weapon/weldingtool/hugetank
name = "Upgraded Welding Tool" name = "upgraded welding tool"
max_fuel = 80 max_fuel = 80
w_class = 3.0 w_class = 3.0
matter = list("metal" = 70, "glass" = 120) matter = list("metal" = 70, "glass" = 120)
origin_tech = "engineering=3" origin_tech = "engineering=3"
/obj/item/weapon/weldingtool/experimental /obj/item/weapon/weldingtool/experimental
name = "Experimental Welding Tool" name = "experimental welding tool"
max_fuel = 40 max_fuel = 40
w_class = 3.0 w_class = 3.0
matter = list("metal" = 70, "glass" = 120) matter = list("metal" = 70, "glass" = 120)

View File

@@ -198,4 +198,3 @@
/obj/item/weapon/twohanded/spear/update_icon() /obj/item/weapon/twohanded/spear/update_icon()
icon_state = "spearglass[wielded]" icon_state = "spearglass[wielded]"
return return

View File

@@ -16,5 +16,3 @@
else else
user << "\blue You are not using this to lay wire..." user << "\blue You are not using this to lay wire..."
return return

View File

@@ -93,8 +93,6 @@ LINEN BINS
item_color = "brown" item_color = "brown"
/obj/structure/bedsheetbin /obj/structure/bedsheetbin
name = "linen bin" name = "linen bin"
desc = "A linen bin. It looks rather cosy." desc = "A linen bin. It looks rather cosy."

View File

@@ -134,4 +134,3 @@
new /obj/item/clothing/head/helmet/thunderdome(src) new /obj/item/clothing/head/helmet/thunderdome(src)
new /obj/item/clothing/head/helmet/thunderdome(src) new /obj/item/clothing/head/helmet/thunderdome(src)
new /obj/item/clothing/head/helmet/thunderdome(src) new /obj/item/clothing/head/helmet/thunderdome(src)

View File

@@ -1,4 +1,3 @@
/obj/structure/closet/malf/suits /obj/structure/closet/malf/suits
desc = "It's a storage unit for operational gear." desc = "It's a storage unit for operational gear."
icon_state = "syndicate" icon_state = "syndicate"

View File

@@ -91,11 +91,3 @@
for(var/i = 0, i < 6, i++) for(var/i = 0, i < 6, i++)
new /obj/item/weapon/spacecash/c200(src) new /obj/item/weapon/spacecash/c200(src)
return return

View File

@@ -1,6 +1,6 @@
/obj/structure/closet/secure_closet/personal /obj/structure/closet/secure_closet/personal
desc = "It's a secure locker for personnel. The first card swiped gains control."
name = "personal closet" name = "personal closet"
desc = "It's a secure locker for personnel. The first card swiped gains control."
req_access = list(access_all_personal_lockers) req_access = list(access_all_personal_lockers)
var/registered_name = null var/registered_name = null

View File

@@ -1,6 +1,6 @@
/obj/structure/curtain /obj/structure/curtain
icon = 'icons/obj/curtain.dmi'
name = "curtain" name = "curtain"
icon = 'icons/obj/curtain.dmi'
icon_state = "closed" icon_state = "closed"
layer = MOB_LAYER + 0.1 layer = MOB_LAYER + 0.1
opacity = 1 opacity = 1

View File

@@ -92,5 +92,3 @@
src.health -= 2 src.health -= 2
healthcheck() healthcheck()
return return

View File

@@ -1,7 +1,6 @@
obj/structure/door_assembly obj/structure/door_assembly
icon = 'icons/obj/doors/door_assembly.dmi'
name = "airlock assembly" name = "airlock assembly"
icon = 'icons/obj/doors/door_assembly.dmi'
icon_state = "door_as_0" icon_state = "door_as_0"
anchored = 0 anchored = 0
density = 1 density = 1
@@ -17,91 +16,91 @@ obj/structure/door_assembly
New() New()
update_state() update_state()
door_assembly_com obj/structure/door_assembly/door_assembly_com
base_icon_state = "com" base_icon_state = "com"
base_name = "Command Airlock" base_name = "Command Airlock"
glass_type = "/glass_command" glass_type = "/glass_command"
airlock_type = "/command" airlock_type = "/command"
door_assembly_sec obj/structure/door_assembly/door_assembly_sec
base_icon_state = "sec" base_icon_state = "sec"
base_name = "Security Airlock" base_name = "Security Airlock"
glass_type = "/glass_security" glass_type = "/glass_security"
airlock_type = "/security" airlock_type = "/security"
door_assembly_eng obj/structure/door_assembly/door_assembly_eng
base_icon_state = "eng" base_icon_state = "eng"
base_name = "Engineering Airlock" base_name = "Engineering Airlock"
glass_type = "/glass_engineering" glass_type = "/glass_engineering"
airlock_type = "/engineering" airlock_type = "/engineering"
door_assembly_min obj/structure/door_assembly/door_assembly_min
base_icon_state = "min" base_icon_state = "min"
base_name = "Mining Airlock" base_name = "Mining Airlock"
glass_type = "/glass_mining" glass_type = "/glass_mining"
airlock_type = "/mining" airlock_type = "/mining"
door_assembly_atmo obj/structure/door_assembly/door_assembly_atmo
base_icon_state = "atmo" base_icon_state = "atmo"
base_name = "Atmospherics Airlock" base_name = "Atmospherics Airlock"
glass_type = "/glass_atmos" glass_type = "/glass_atmos"
airlock_type = "/atmos" airlock_type = "/atmos"
door_assembly_research obj/structure/door_assembly/door_assembly_research
base_icon_state = "res" base_icon_state = "res"
base_name = "Research Airlock" base_name = "Research Airlock"
glass_type = "/glass_research" glass_type = "/glass_research"
airlock_type = "/research" airlock_type = "/research"
door_assembly_science obj/structure/door_assembly/door_assembly_science
base_icon_state = "sci" base_icon_state = "sci"
base_name = "Science Airlock" base_name = "Science Airlock"
glass_type = "/glass_science" glass_type = "/glass_science"
airlock_type = "/science" airlock_type = "/science"
door_assembly_med obj/structure/door_assembly/door_assembly_med
base_icon_state = "med" base_icon_state = "med"
base_name = "Medical Airlock" base_name = "Medical Airlock"
glass_type = "/glass_medical" glass_type = "/glass_medical"
airlock_type = "/medical" airlock_type = "/medical"
door_assembly_mai obj/structure/door_assembly/door_assembly_mai
base_icon_state = "mai" base_icon_state = "mai"
base_name = "Maintenance Airlock" base_name = "Maintenance Airlock"
airlock_type = "/maintenance" airlock_type = "/maintenance"
glass = -1 glass = -1
door_assembly_ext obj/structure/door_assembly/door_assembly_ext
base_icon_state = "ext" base_icon_state = "ext"
base_name = "External Airlock" base_name = "External Airlock"
airlock_type = "/external" airlock_type = "/external"
glass = -1 glass = -1
door_assembly_fre obj/structure/door_assembly/door_assembly_fre
base_icon_state = "fre" base_icon_state = "fre"
base_name = "Freezer Airlock" base_name = "Freezer Airlock"
airlock_type = "/freezer" airlock_type = "/freezer"
glass = -1 glass = -1
door_assembly_hatch obj/structure/door_assembly/door_assembly_hatch
base_icon_state = "hatch" base_icon_state = "hatch"
base_name = "Airtight Hatch" base_name = "Airtight Hatch"
airlock_type = "/hatch" airlock_type = "/hatch"
glass = -1 glass = -1
door_assembly_mhatch obj/structure/door_assembly/door_assembly_mhatch
base_icon_state = "mhatch" base_icon_state = "mhatch"
base_name = "Maintenance Hatch" base_name = "Maintenance Hatch"
airlock_type = "/maintenance_hatch" airlock_type = "/maintenance_hatch"
glass = -1 glass = -1
door_assembly_highsecurity // Borrowing this until WJohnston makes sprites for the assembly obj/structure/door_assembly/door_assembly_highsecurity // Borrowing this until WJohnston makes sprites for the assembly
base_icon_state = "highsec" base_icon_state = "highsec"
base_name = "High Security Airlock" base_name = "High Security Airlock"
airlock_type = "/highsecurity" airlock_type = "/highsecurity"
glass = -1 glass = -1
multi_tile obj/structure/door_assembly/multi_tile
icon = 'icons/obj/doors/door_assembly2x1.dmi' icon = 'icons/obj/doors/door_assembly2x1.dmi'
dir = EAST dir = EAST
var/width = 1 var/width = 1

View File

@@ -331,4 +331,3 @@
desc = "A wall with sandstone plating." desc = "A wall with sandstone plating."
icon_state = "" icon_state = ""
mineral = "sandstone" mineral = "sandstone"
//------------wtf?------------end

View File

@@ -1,6 +1,6 @@
/obj/structure/grille /obj/structure/grille
desc = "A flimsy lattice of metal rods, with screws to secure it to the floor."
name = "grille" name = "grille"
desc = "A flimsy lattice of metal rods, with screws to secure it to the floor."
icon = 'icons/obj/structures.dmi' icon = 'icons/obj/structures.dmi'
icon_state = "grille" icon_state = "grille"
density = 1 density = 1

View File

@@ -1,6 +1,6 @@
/obj/structure/lattice /obj/structure/lattice
desc = "A lightweight support lattice."
name = "lattice" name = "lattice"
desc = "A lightweight support lattice."
icon = 'icons/obj/structures.dmi' icon = 'icons/obj/structures.dmi'
icon_state = "latticefull" icon_state = "latticefull"
density = 0 density = 0

View File

@@ -284,4 +284,3 @@
CheckHardness() CheckHardness()
playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
..() ..()

View File

@@ -388,4 +388,3 @@
else else
usr << "\red Access denied." usr << "\red Access denied."
return return

View File

@@ -1,6 +1,5 @@
//Vox pinning weapon. //Vox pinning weapon.
/obj/item/weapon/gun/launcher/spikethrower /obj/item/weapon/gun/launcher/spikethrower
name = "Vox spike thrower" name = "Vox spike thrower"
desc = "A vicious alien projectile weapon. Parts of it quiver gelatinously, as though the thing is insectile and alive." desc = "A vicious alien projectile weapon. Parts of it quiver gelatinously, as though the thing is insectile and alive."
@@ -65,7 +64,6 @@
//This gun only functions for armalis. The on-sprite is too huge to render properly on other sprites. //This gun only functions for armalis. The on-sprite is too huge to render properly on other sprites.
/obj/item/weapon/gun/energy/noisecannon /obj/item/weapon/gun/energy/noisecannon
name = "alien heavy cannon" name = "alien heavy cannon"
desc = "It's some kind of enormous alien weapon, as long as a man is tall." desc = "It's some kind of enormous alien weapon, as long as a man is tall."

View File

@@ -1,7 +1,7 @@
/obj/item/weapon/gun/energy /obj/item/weapon/gun/energy
icon_state = "energy"
name = "energy gun" name = "energy gun"
desc = "A basic energy-based gun." desc = "A basic energy-based gun."
icon_state = "energy"
fire_sound = 'sound/weapons/Taser.ogg' fire_sound = 'sound/weapons/Taser.ogg'
var/obj/item/weapon/cell/power_supply //What type of power cell this uses var/obj/item/weapon/cell/power_supply //What type of power cell this uses

View File

@@ -1,6 +1,6 @@
/obj/item/weapon/gun/energy/laser /obj/item/weapon/gun/energy/laser
name = "laser carbine" name = "laser carbine"
desc = "a basic weapon designed kill with concentrated energy bolts" desc = "A basic weapon designed to kill with concentrated energy bolts."
icon_state = "laser" icon_state = "laser"
item_state = "laser" item_state = "laser"
fire_sound = 'sound/weapons/Laser.ogg' fire_sound = 'sound/weapons/Laser.ogg'

View File

@@ -64,5 +64,4 @@
icon_state = "m1911-p" icon_state = "m1911-p"
cell_type = "/obj/item/weapon/cell/infinite" cell_type = "/obj/item/weapon/cell/infinite"
isHandgun() isHandgun()
return 1

View File

@@ -1,4 +1,3 @@
/obj/item/weapon/gun/energy/taser /obj/item/weapon/gun/energy/taser
name = "taser gun" name = "taser gun"
desc = "A small, low capacity gun used for non-lethal takedowns." desc = "A small, low capacity gun used for non-lethal takedowns."
@@ -10,12 +9,6 @@
cell_type = "/obj/item/weapon/cell/crap" cell_type = "/obj/item/weapon/cell/crap"
/obj/item/weapon/gun/energy/taser/cyborg /obj/item/weapon/gun/energy/taser/cyborg
name = "taser gun"
desc = "A small, low capacity gun used for non-lethal takedowns."
icon_state = "taser"
fire_sound = 'sound/weapons/Taser.ogg'
charge_cost = 100
projectile_type = "/obj/item/projectile/beam/stun"
cell_type = "/obj/item/weapon/cell/secborg" cell_type = "/obj/item/weapon/cell/secborg"
var/charge_tick = 0 var/charge_tick = 0
var/recharge_time = 10 //Time it takes for shots to recharge (in ticks) var/recharge_time = 10 //Time it takes for shots to recharge (in ticks)
@@ -107,5 +100,3 @@
force = 10 force = 10
matter = list("metal" = 200000) matter = list("metal" = 200000)
projectile_type = "/obj/item/projectile/energy/bolt/large" projectile_type = "/obj/item/projectile/energy/bolt/large"

View File

@@ -3,8 +3,8 @@
#define MAGAZINE 2 #define MAGAZINE 2
/obj/item/weapon/gun/projectile /obj/item/weapon/gun/projectile
desc = "A classic revolver. Uses 357 ammo"
name = "revolver" name = "revolver"
desc = "A classic revolver. Uses 357 ammo"
icon_state = "revolver" icon_state = "revolver"
caliber = "357" caliber = "357"
origin_tech = "combat=2;materials=2" origin_tech = "combat=2;materials=2"
@@ -118,4 +118,3 @@
if(istype(AC)) if(istype(AC))
bullets += 1 bullets += 1
return bullets return bullets

View File

@@ -144,3 +144,4 @@
around simulating a removable magazine by adding the casings into the loaded list and spawning an empty magazine around simulating a removable magazine by adding the casings into the loaded list and spawning an empty magazine
when the gun is out of rounds. Which means you can't eject magazines with rounds in them. The below is a very when the gun is out of rounds. Which means you can't eject magazines with rounds in them. The below is a very
rough and poor attempt at making that happen. -Ausops */ rough and poor attempt at making that happen. -Ausops */

View File

@@ -1,7 +1,6 @@
//AMMUNITION //AMMUNITION
/obj/item/weapon/arrow /obj/item/weapon/arrow
name = "bolt" name = "bolt"
desc = "It's got a tip for you - get the point?" desc = "It's got a tip for you - get the point?"
icon = 'icons/obj/weapons.dmi' icon = 'icons/obj/weapons.dmi'
@@ -28,7 +27,6 @@
item_state = "bolt" item_state = "bolt"
/obj/item/weapon/arrow/quill /obj/item/weapon/arrow/quill
name = "vox quill" name = "vox quill"
desc = "A wickedly barbed quill from some bizarre animal." desc = "A wickedly barbed quill from some bizarre animal."
icon = 'icons/obj/weapons.dmi' icon = 'icons/obj/weapons.dmi'
@@ -37,7 +35,6 @@
throwforce = 5 throwforce = 5
/obj/item/weapon/arrow/rod /obj/item/weapon/arrow/rod
name = "metal rod" name = "metal rod"
desc = "Don't cry for me, Orithena." desc = "Don't cry for me, Orithena."
icon_state = "metal-rod" icon_state = "metal-rod"
@@ -50,7 +47,6 @@
src.Del() src.Del()
/obj/item/weapon/gun/launcher/crossbow /obj/item/weapon/gun/launcher/crossbow
name = "powered crossbow" name = "powered crossbow"
desc = "A 2557AD twist on an old classic. Pick up that can." desc = "A 2557AD twist on an old classic. Pick up that can."
icon_state = "crossbow" icon_state = "crossbow"
@@ -173,7 +169,6 @@
..() ..()
/obj/item/weapon/gun/launcher/crossbow/proc/superheat_rod(var/mob/user) /obj/item/weapon/gun/launcher/crossbow/proc/superheat_rod(var/mob/user)
if(!user || !cell || !in_chamber) return if(!user || !cell || !in_chamber) return
if(cell.charge < 500) return if(cell.charge < 500) return
if(in_chamber.throwforce >= 15) return if(in_chamber.throwforce >= 15) return

View File

@@ -1,5 +1,4 @@
/obj/item/weapon/gun/launcher /obj/item/weapon/gun/launcher
name = "launcher" name = "launcher"
desc = "A device that launches things." desc = "A device that launches things."
icon = 'icons/obj/weapons.dmi' icon = 'icons/obj/weapons.dmi'

View File

@@ -27,7 +27,6 @@
tank_container.tag = "gas_tank_holder" tank_container.tag = "gas_tank_holder"
/obj/item/weapon/gun/launcher/pneumatic/verb/set_pressure() //set amount of tank pressure. /obj/item/weapon/gun/launcher/pneumatic/verb/set_pressure() //set amount of tank pressure.
set name = "Set Valve Pressure" set name = "Set Valve Pressure"
set category = "Object" set category = "Object"
set src in range(0) set src in range(0)
@@ -37,7 +36,6 @@
usr << "You dial the pressure valve to [pressure_setting]%." usr << "You dial the pressure valve to [pressure_setting]%."
/obj/item/weapon/gun/launcher/pneumatic/verb/eject_tank() //Remove the tank. /obj/item/weapon/gun/launcher/pneumatic/verb/eject_tank() //Remove the tank.
set name = "Eject Tank" set name = "Eject Tank"
set category = "Object" set category = "Object"
set src in range(0) set src in range(0)
@@ -79,7 +77,6 @@
user << "That won't fit into the hopper." user << "That won't fit into the hopper."
/obj/item/weapon/gun/launcher/pneumatic/attack_self(mob/user as mob) /obj/item/weapon/gun/launcher/pneumatic/attack_self(mob/user as mob)
if(contents.len > 0) if(contents.len > 0)
var/obj/item/removing = contents[contents.len] var/obj/item/removing = contents[contents.len]
if(removing == in_chamber) if(removing == in_chamber)

View File

@@ -1,6 +1,6 @@
/obj/item/weapon/gun/projectile/detective /obj/item/weapon/gun/projectile/detective
desc = "A cheap Martian knock-off of a Smith & Wesson Model 10. Uses .38-Special rounds."
name = "revolver" name = "revolver"
desc = "A cheap Martian knock-off of a Smith & Wesson Model 10. Uses .38-Special rounds."
icon_state = "detective" icon_state = "detective"
max_shells = 6 max_shells = 6
caliber = "38" caliber = "38"
@@ -71,8 +71,8 @@
/obj/item/weapon/gun/projectile/detective/semiauto /obj/item/weapon/gun/projectile/detective/semiauto
desc = "A cheap Martian knock-off of a Colt M1911. Uses less-than-lethal .45 rounds."
name = "\improper Colt M1911" name = "\improper Colt M1911"
desc = "A cheap Martian knock-off of a Colt M1911. Uses less-than-lethal .45 rounds."
icon_state = "colt" icon_state = "colt"
max_shells = 7 max_shells = 7
caliber = ".45" caliber = ".45"
@@ -113,7 +113,6 @@
update_icon() update_icon()
/obj/item/weapon/gun/projectile/russian/proc/Spin() /obj/item/weapon/gun/projectile/russian/proc/Spin()
for(var/obj/item/ammo_casing/AC in loaded) for(var/obj/item/ammo_casing/AC in loaded)
del(AC) del(AC)
loaded = list() loaded = list()
@@ -126,7 +125,6 @@
/obj/item/weapon/gun/projectile/russian/attackby(var/obj/item/A as obj, mob/user as mob) /obj/item/weapon/gun/projectile/russian/attackby(var/obj/item/A as obj, mob/user as mob)
if(!A) return if(!A) return
var/num_loaded = 0 var/num_loaded = 0
@@ -155,13 +153,11 @@
return return
/obj/item/weapon/gun/projectile/russian/attack_self(mob/user as mob) /obj/item/weapon/gun/projectile/russian/attack_self(mob/user as mob)
user.visible_message("<span class='warning'>[user] spins the chamber of the revolver.</span>", "<span class='warning'>You spin the revolver's chamber.</span>") user.visible_message("<span class='warning'>[user] spins the chamber of the revolver.</span>", "<span class='warning'>You spin the revolver's chamber.</span>")
if(getAmmo() > 0) if(getAmmo() > 0)
Spin() Spin()
/obj/item/weapon/gun/projectile/russian/attack(atom/target as mob|obj|turf|area, mob/living/user as mob|obj) /obj/item/weapon/gun/projectile/russian/attack(atom/target as mob|obj|turf|area, mob/living/user as mob|obj)
if(!loaded.len) if(!loaded.len)
user.visible_message("\red *click*", "\red *click*") user.visible_message("\red *click*", "\red *click*")
playsound(user, 'sound/weapons/empty.ogg', 100, 1) playsound(user, 'sound/weapons/empty.ogg', 100, 1)
@@ -186,4 +182,3 @@
user.apply_damage(300, BRUTE, affecting, sharp=1) // You are dead, dead, dead. user.apply_damage(300, BRUTE, affecting, sharp=1) // You are dead, dead, dead.
return return
..() ..()

View File

@@ -1,5 +1,4 @@
/obj/item/weapon/gun/rocketlauncher /obj/item/weapon/gun/rocketlauncher
var/projectile
name = "rocket launcher" name = "rocket launcher"
desc = "MAGGOT." desc = "MAGGOT."
icon_state = "rocket" icon_state = "rocket"
@@ -11,7 +10,7 @@
flags = FPRINT | TABLEPASS | CONDUCT | USEDELAY flags = FPRINT | TABLEPASS | CONDUCT | USEDELAY
slot_flags = 0 slot_flags = 0
origin_tech = "combat=8;materials=5" origin_tech = "combat=8;materials=5"
projectile = /obj/item/missile var/projectile = /obj/item/missile
var/missile_speed = 2 var/missile_speed = 2
var/missile_range = 30 var/missile_range = 30
var/max_rockets = 1 var/max_rockets = 1

View File

@@ -85,4 +85,3 @@
del(M) del(M)
return new_mob return new_mob

View File

@@ -65,4 +65,3 @@
damage = 20 damage = 20
damage_type = TOX damage_type = TOX
irradiate = 20 irradiate = 20