Fixes some boxes starting with the wrong contents and more (#3247)

-fixes #3226
-fixes zipties boxes
-fixes the mounted pulse module using the wrong gun
-fixes ballistic guns icons showing as empty when the round starts
-tweaks the uplink vest to include the matching helmet
This commit is contained in:
Alberyk
2017-08-07 16:53:43 -03:00
committed by Erki
parent 3714736667
commit 0e5d79c13f
5 changed files with 37 additions and 28 deletions

View File

@@ -26,9 +26,9 @@
path = /obj/item/weapon/plastique path = /obj/item/weapon/plastique
/datum/uplink_item/item/tools/heavy_vest /datum/uplink_item/item/tools/heavy_vest
name = "Heavy Armor Vest" name = "Heavy Armor Kit"
item_cost = 4 item_cost = 4
path = /obj/item/clothing/suit/storage/vest/merc path = /obj/item/weapon/storage/box/syndie_kit/armor
/datum/uplink_item/item/tools/encryptionkey_radio /datum/uplink_item/item/tools/encryptionkey_radio
name = "Encrypted Radio Channel Key" name = "Encrypted Radio Channel Key"
@@ -86,7 +86,7 @@
name = "Hacked Supply Beacon (DANGER!)" name = "Hacked Supply Beacon (DANGER!)"
item_cost = 14 item_cost = 14
path = /obj/item/supply_beacon path = /obj/item/supply_beacon
/datum/uplink_item/item/tools/advancedpinpointer /datum/uplink_item/item/tools/advancedpinpointer
name = "Advanced pinpointer" name = "Advanced pinpointer"
item_cost = 15 item_cost = 15

View File

@@ -158,22 +158,22 @@
desc = "A box full of syringes." desc = "A box full of syringes."
icon_state = "syringe" icon_state = "syringe"
New() /obj/item/weapon/storage/box/syringes/fill()
..() ..()
new /obj/item/weapon/reagent_containers/syringe( src ) new /obj/item/weapon/reagent_containers/syringe( src )
new /obj/item/weapon/reagent_containers/syringe( src ) new /obj/item/weapon/reagent_containers/syringe( src )
new /obj/item/weapon/reagent_containers/syringe( src ) new /obj/item/weapon/reagent_containers/syringe( src )
new /obj/item/weapon/reagent_containers/syringe( src ) new /obj/item/weapon/reagent_containers/syringe( src )
new /obj/item/weapon/reagent_containers/syringe( src ) new /obj/item/weapon/reagent_containers/syringe( src )
new /obj/item/weapon/reagent_containers/syringe( src ) new /obj/item/weapon/reagent_containers/syringe( src )
new /obj/item/weapon/reagent_containers/syringe( src ) new /obj/item/weapon/reagent_containers/syringe( src )
/obj/item/weapon/storage/box/syringegun /obj/item/weapon/storage/box/syringegun
name = "box of syringe gun cartridges" name = "box of syringe gun cartridges"
desc = "A box full of compressed gas cartridges." desc = "A box full of compressed gas cartridges."
icon_state = "syringe" icon_state = "syringe"
/obj/item/weapon/storage/box/syringes/fill() /obj/item/weapon/storage/box/syringegun/fill()
..() ..()
new /obj/item/weapon/syringe_cartridge( src ) new /obj/item/weapon/syringe_cartridge( src )
new /obj/item/weapon/syringe_cartridge( src ) new /obj/item/weapon/syringe_cartridge( src )
@@ -509,7 +509,7 @@
/obj/item/weapon/storage/box/cups /obj/item/weapon/storage/box/cups
name = "box of paper cups" name = "box of paper cups"
desc = "It has pictures of paper cups on the front." desc = "It has pictures of paper cups on the front."
/obj/item/weapon/storage/box/cups/fill() /obj/item/weapon/storage/box/cups/fill()
..() ..()
new /obj/item/weapon/reagent_containers/food/drinks/sillycup( src ) new /obj/item/weapon/reagent_containers/food/drinks/sillycup( src )
@@ -554,7 +554,7 @@
icon = 'icons/obj/food.dmi' icon = 'icons/obj/food.dmi'
icon_state = "monkeycubebox" icon_state = "monkeycubebox"
can_hold = list(/obj/item/weapon/reagent_containers/food/snacks/monkeycube) can_hold = list(/obj/item/weapon/reagent_containers/food/snacks/monkeycube)
/obj/item/weapon/storage/box/monkeycubes/fill() /obj/item/weapon/storage/box/monkeycubes/fill()
..() ..()
if(src.type == /obj/item/weapon/storage/box/monkeycubes) if(src.type == /obj/item/weapon/storage/box/monkeycubes)
@@ -564,7 +564,7 @@
/obj/item/weapon/storage/box/monkeycubes/farwacubes /obj/item/weapon/storage/box/monkeycubes/farwacubes
name = "farwa cube box" name = "farwa cube box"
desc = "Drymate brand farwa cubes, shipped from Adhomai. Just add water!" desc = "Drymate brand farwa cubes, shipped from Adhomai. Just add water!"
/obj/item/weapon/storage/box/monkeycubes/farwacubes/fill() /obj/item/weapon/storage/box/monkeycubes/farwacubes/fill()
..() ..()
for(var/i = 1; i <= 5; i++) for(var/i = 1; i <= 5; i++)
@@ -573,7 +573,7 @@
/obj/item/weapon/storage/box/monkeycubes/stokcubes /obj/item/weapon/storage/box/monkeycubes/stokcubes
name = "stok cube box" name = "stok cube box"
desc = "Drymate brand stok cubes, shipped from Moghes. Just add water!" desc = "Drymate brand stok cubes, shipped from Moghes. Just add water!"
/obj/item/weapon/storage/box/monkeycubes/stokcubes/fill() /obj/item/weapon/storage/box/monkeycubes/stokcubes/fill()
..() ..()
for(var/i = 1; i <= 5; i++) for(var/i = 1; i <= 5; i++)
@@ -582,7 +582,7 @@
/obj/item/weapon/storage/box/monkeycubes/neaeracubes /obj/item/weapon/storage/box/monkeycubes/neaeracubes
name = "neaera cube box" name = "neaera cube box"
desc = "Drymate brand neaera cubes, shipped from Jargon 4. Just add water!" desc = "Drymate brand neaera cubes, shipped from Jargon 4. Just add water!"
/obj/item/weapon/storage/box/monkeycubes/neaeracubes/fill() /obj/item/weapon/storage/box/monkeycubes/neaeracubes/fill()
..() ..()
for(var/i = 1; i <= 5; i++) for(var/i = 1; i <= 5; i++)
@@ -632,13 +632,13 @@
new /obj/item/weapon/handcuffs(src) new /obj/item/weapon/handcuffs(src)
new /obj/item/weapon/handcuffs(src) new /obj/item/weapon/handcuffs(src)
new /obj/item/weapon/handcuffs(src) new /obj/item/weapon/handcuffs(src)
/obj/item/weapon/storage/box/zipties /obj/item/weapon/storage/box/zipties
name = "box of zipties" name = "box of zipties"
desc = "A box full of zipties." desc = "A box full of zipties."
icon_state = "handcuff" icon_state = "handcuff"
/obj/item/weapon/storage/box/handcuffs/fill() /obj/item/weapon/storage/box/zipties/fill()
..() ..()
new /obj/item/weapon/handcuffs/ziptie(src) new /obj/item/weapon/handcuffs/ziptie(src)
new /obj/item/weapon/handcuffs/ziptie(src) new /obj/item/weapon/handcuffs/ziptie(src)
@@ -679,7 +679,7 @@
/obj/item/weapon/storage/box/spraybottles /obj/item/weapon/storage/box/spraybottles
name = "box of spray bottles" name = "box of spray bottles"
desc = "It has pictures of spray bottles on its front." desc = "It has pictures of spray bottles on its front."
/obj/item/weapon/storage/box/spraybottles/fill() /obj/item/weapon/storage/box/spraybottles/fill()
..() ..()
new /obj/item/weapon/reagent_containers/spray( src ) new /obj/item/weapon/reagent_containers/spray( src )
@@ -696,12 +696,12 @@
icon = 'icons/obj/toy.dmi' icon = 'icons/obj/toy.dmi'
icon_state = "spbox" icon_state = "spbox"
can_hold = list(/obj/item/toy/snappop) can_hold = list(/obj/item/toy/snappop)
/obj/item/weapon/storage/box/snappops/fill() /obj/item/weapon/storage/box/snappops/fill()
..() ..()
for(var/i=1; i <= 8; i++) for(var/i=1; i <= 8; i++)
new /obj/item/toy/snappop(src) new /obj/item/toy/snappop(src)
/obj/item/weapon/storage/box/matches /obj/item/weapon/storage/box/matches
name = "matchbox" name = "matchbox"
desc = "A small box of 'Space-Proof' premium matches." desc = "A small box of 'Space-Proof' premium matches."
@@ -730,7 +730,7 @@
name = "box of injectors" name = "box of injectors"
desc = "Contains autoinjectors." desc = "Contains autoinjectors."
icon_state = "syringe" icon_state = "syringe"
/obj/item/weapon/storage/box/autoinjectors/fill() /obj/item/weapon/storage/box/autoinjectors/fill()
..() ..()
for (var/i; i < 7; i++) for (var/i; i < 7; i++)

View File

@@ -166,7 +166,7 @@
new /obj/item/device/spy_monitor(src) new /obj/item/device/spy_monitor(src)
/obj/item/weapon/storage/box/syndie_kit/g9mm /obj/item/weapon/storage/box/syndie_kit/g9mm
name = "\improper Smooth operator" name = "smooth operator"
desc = "9mm with silencer kit." desc = "9mm with silencer kit."
/obj/item/weapon/storage/box/syndie_kit/g9mm/fill() /obj/item/weapon/storage/box/syndie_kit/g9mm/fill()
@@ -184,7 +184,7 @@
new /obj/item/weapon/reagent_containers/syringe(src) new /obj/item/weapon/reagent_containers/syringe(src)
/obj/item/weapon/storage/box/syndie_kit/cigarette /obj/item/weapon/storage/box/syndie_kit/cigarette
name = "\improper Tricky smokes" name = "tricky smokes"
desc = "Comes with the following brands of cigarettes, in this order: 2xFlash, 2xSmoke, 1xMindBreaker, 1xTricordrazine. Avoid mixing them up." desc = "Comes with the following brands of cigarettes, in this order: 2xFlash, 2xSmoke, 1xMindBreaker, 1xTricordrazine. Avoid mixing them up."
/obj/item/weapon/storage/box/syndie_kit/cigarette/fill() /obj/item/weapon/storage/box/syndie_kit/cigarette/fill()
@@ -225,7 +225,7 @@
C.reagents.add_reagent(reagent, reagents[reagent] * C.storage_slots) C.reagents.add_reagent(reagent, reagents[reagent] * C.storage_slots)
/obj/item/weapon/storage/box/syndie_kit/ewar_voice /obj/item/weapon/storage/box/syndie_kit/ewar_voice
name = "Electrowarfare and Voice Synthesiser kit" name = "electrowarfare and voice synthesiser kit"
desc = "Kit for confounding organic and synthetic entities alike." desc = "Kit for confounding organic and synthetic entities alike."
/obj/item/weapon/storage/box/syndie_kit/ewar_voice/fill() /obj/item/weapon/storage/box/syndie_kit/ewar_voice/fill()
@@ -233,6 +233,13 @@
new /obj/item/rig_module/electrowarfare_suite(src) new /obj/item/rig_module/electrowarfare_suite(src)
new /obj/item/rig_module/voice(src) new /obj/item/rig_module/voice(src)
/obj/item/weapon/storage/box/syndie_kit/armor
name = "boxed armor kit"
/obj/item/weapon/storage/box/syndie_kit/armor/fill()
..()
new /obj/item/clothing/suit/storage/vest/merc(src)
new /obj/item/clothing/head/helmet/merc(src)
/obj/item/weapon/storage/secure/briefcase/money /obj/item/weapon/storage/secure/briefcase/money
name = "suspicious briefcase" name = "suspicious briefcase"

View File

@@ -184,7 +184,7 @@
interface_name = "mounted pulse rifle" interface_name = "mounted pulse rifle"
interface_desc = "A shoulder-mounted cell-powered pulse rifle." interface_desc = "A shoulder-mounted cell-powered pulse rifle."
gun_type = /obj/item/weapon/gun/energy/pulse gun_type = /obj/item/weapon/gun/energy/pulse/mounted
/obj/item/rig_module/mounted/smg /obj/item/rig_module/mounted/smg

View File

@@ -94,6 +94,8 @@
if(isnull(scoped_accuracy)) if(isnull(scoped_accuracy))
scoped_accuracy = accuracy scoped_accuracy = accuracy
queue_icon_update()
//Checks whether a given mob can use the gun //Checks whether a given mob can use the gun
//Any checks that shouldn't result in handle_click_empty() being called if they fail should go here. //Any checks that shouldn't result in handle_click_empty() being called if they fail should go here.
//Otherwise, if you want handle_click_empty() to be called, check in consume_next_projectile() and return null there. //Otherwise, if you want handle_click_empty() to be called, check in consume_next_projectile() and return null there.