From db995ad6253f99e8c5b107bccea172c795729dc2 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Wed, 25 Jan 2012 13:53:57 -0700 Subject: [PATCH 1/5] Pimped out the RCD, is now more flexible about amounts, and a subtype (/obj/item/weapon/rcd/industrial) that starts preloaded with 60 units. --- code/game/objects/items/weapons/RCD.dm | 44 +++++++++++++++----------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm index 7958372d6a3..c9db24851ca 100644 --- a/code/game/objects/items/weapons/RCD.dm +++ b/code/game/objects/items/weapons/RCD.dm @@ -24,10 +24,11 @@ RCD working = 0 mode = 1 disabled = 0 + max_matter = 30 New() - desc = "A RCD. It currently holds [matter]/30 matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." src.spark_system = new /datum/effect/effect/system/spark_spread spark_system.set_up(5, 0, src) spark_system.attach(src) @@ -37,14 +38,14 @@ RCD attackby(obj/item/weapon/W as obj, mob/user as mob) ..() if(istype(W, /obj/item/weapon/rcd_ammo)) - if((matter + 10) > 30) + if((matter + 10) > max_matter) user << "The RCD cant hold any more matter." return del(W) matter += 10 playsound(src.loc, 'click.ogg', 50, 1) - user << "The RCD now holds [matter]/30 matter-units." - desc = "A RCD. It currently holds [matter]/30 matter-units." + user << "The RCD now holds [matter]/[max_matter] matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return @@ -79,10 +80,10 @@ RCD playsound(src.loc, 'Deconstruct.ogg', 50, 1) spark_system.set_up(5, 0, src) src.spark_system.start() - A:ReplaceWithFloor() + A:ReplaceWithPlating() matter-- - user << "The RCD now holds [matter]/30 matter-units." - desc = "A RCD. It currently holds [matter]/30 matter-units." + user << "The RCD now holds [matter]/[max_matter] matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return if(istype(A, /turf/simulated/floor) && matter >= 3) user << "Building Wall (3)..." @@ -94,8 +95,8 @@ RCD A:ReplaceWithWall() playsound(src.loc, 'Deconstruct.ogg', 50, 1) matter -= 3 - user << "The RCD now holds [matter]/30 matter-units." - desc = "A RCD. It currently holds [matter]/30 matter-units." + user << "The RCD now holds [matter]/[max_matter] matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return else if(istype(A, /turf/simulated/floor) && mode == 2 && matter >= 10) user << "Building Airlock (10)..." @@ -113,8 +114,8 @@ RCD playsound(src.loc, 'Deconstruct.ogg', 50, 1) playsound(src.loc, 'sparks2.ogg', 50, 1) matter -= 10 - user << "The RCD now holds [matter]/30 matter-units." - desc = "A RCD. It currently holds [matter]/30 matter-units." + user << "The RCD now holds [matter]/[max_matter] matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return else if(mode == 3 && (istype(A, /turf) || istype(A, /obj/machinery/door/airlock) ) ) if(istype(A, /turf/simulated/wall) && matter >= 4) @@ -124,11 +125,11 @@ RCD if(!disabled && matter >= 4) spark_system.set_up(5, 0, src) src.spark_system.start() - A:ReplaceWithFloor() + A:ReplaceWithPlating() playsound(src.loc, 'Deconstruct.ogg', 50, 1) matter -= 4 - user << "The RCD now holds [matter]/30 matter-units." - desc = "A RCD. It currently holds [matter]/30 matter-units." + user << "The RCD now holds [matter]/[max_matter] matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return if(istype(A, /turf/simulated/wall/r_wall)) return @@ -142,8 +143,8 @@ RCD A:ReplaceWithSpace() playsound(src.loc, 'Deconstruct.ogg', 50, 1) matter -= 5 - user << "The RCD now holds [matter]/30 matter-units." - desc = "A RCD. It currently holds [matter]/30 matter-units." + user << "The RCD now holds [matter]/[max_matter] matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return if(istype(A, /obj/machinery/door/airlock) && matter >= 10) user << "Deconstructing Airlock (10)..." @@ -155,6 +156,13 @@ RCD del(A) playsound(src.loc, 'Deconstruct.ogg', 50, 1) matter -= 10 - user << "The RCD now holds [matter]/30 matter-units." - desc = "A RCD. It currently holds [matter]/30 matter-units." + user << "The RCD now holds [matter]/[max_matter] matter-units." + desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." return +/obj/item/weapon/rcd/industrial + name = "industrial rapid construction device" + max_matter = 60 + + New() + matter = max_matter + return ..() From 54d3ab562fc4c7def38a35017a2cc439d90805a6 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Wed, 25 Jan 2012 13:55:09 -0700 Subject: [PATCH 2/5] RCDs now make plating instead of full floors. --- code/game/objects/items/robot_items.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/robot_items.dm b/code/game/objects/items/robot_items.dm index 667ac47e479..43ddfc7fdcb 100644 --- a/code/game/objects/items/robot_items.dm +++ b/code/game/objects/items/robot_items.dm @@ -232,7 +232,7 @@ if(!cell.use(30)) return user << "Building Floor..." activate() - A:ReplaceWithFloor() + A:ReplaceWithPlating() return if(istype(A, /turf/simulated/floor)) @@ -263,7 +263,7 @@ playsound(src.loc, 'click.ogg', 50, 1) if(do_after(user, 40)) activate() - A:ReplaceWithFloor() + A:ReplaceWithPlating() return if(istype(A, /turf/simulated/wall/r_wall)) From d58e7229da6859a7213c7736acf51292e637f615 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Wed, 25 Jan 2012 13:56:45 -0700 Subject: [PATCH 3/5] More replacing with plating. --- code/game/mecha/equipment/tools/tools.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/mecha/equipment/tools/tools.dm b/code/game/mecha/equipment/tools/tools.dm index ff693768d0e..375b6a32980 100644 --- a/code/game/mecha/equipment/tools/tools.dm +++ b/code/game/mecha/equipment/tools/tools.dm @@ -192,7 +192,7 @@ if(do_after_cooldown(target)) if(disabled) return chassis.spark_system.start() - target:ReplaceWithFloor() + target:ReplaceWithPlating() playsound(target, 'Deconstruct.ogg', 50, 1) chassis.give_power(energy_drain) else if (istype(target, /turf/simulated/floor)) @@ -219,7 +219,7 @@ set_ready_state(0) if(do_after_cooldown(target)) if(disabled) return - target:ReplaceWithFloor() + target:ReplaceWithPlating() playsound(target, 'Deconstruct.ogg', 50, 1) chassis.spark_system.start() chassis.use_power(energy_drain*2) From c1246323f9efb5ec292f74c8f48e9ba96d2f9491 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Wed, 25 Jan 2012 14:14:30 -0700 Subject: [PATCH 4/5] Prepping... --- code/game/objects/items/weapons/RCD.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm index c9db24851ca..ecb0b24d9a8 100644 --- a/code/game/objects/items/weapons/RCD.dm +++ b/code/game/objects/items/weapons/RCD.dm @@ -38,11 +38,12 @@ RCD attackby(obj/item/weapon/W as obj, mob/user as mob) ..() if(istype(W, /obj/item/weapon/rcd_ammo)) - if((matter + 10) > max_matter) + var/obj/item/weapon/rcd_ammo/R = W + if((matter + R.ammo) > max_matter) user << "The RCD cant hold any more matter." return + matter += R.ammo del(W) - matter += 10 playsound(src.loc, 'click.ogg', 50, 1) user << "The RCD now holds [matter]/[max_matter] matter-units." desc = "A RCD. It currently holds [matter]/[max_matter] matter-units." From 81b8520c613a19355838ac4403f7da719183f2ac Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Wed, 25 Jan 2012 14:16:11 -0700 Subject: [PATCH 5/5] More flexible RCD ammo stuff. --- code/defines/obj/weapon.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/defines/obj/weapon.dm b/code/defines/obj/weapon.dm index 57e37759472..3657bedc5c5 100644 --- a/code/defines/obj/weapon.dm +++ b/code/defines/obj/weapon.dm @@ -105,6 +105,11 @@ origin_tech = "materials=2" m_amt = 30000 g_amt = 15000 + ammo = 10 + +/obj/item/weapon/rcd_ammo/large + name = "Super compressed matter cartridge" + ammo = 30 /obj/item/weapon/spacecash name = "Space Cash"