Files
89ac4472f5 Adds the surplus energy sword; the mall katana of the future. (#92544)
## About The Pull Request

<img width="911" height="517" alt="image"
src="https://github.com/user-attachments/assets/631d5254-95a4-42d5-ae07-f58a815a1976"
/>

Adds the surplus energy sword. This is found in the black market with a
reasonable probability of being stocked but at a pretty high cost.

The weapon otherwise functions as an energy sword, but with a
significantly lower amount of damage if you're not hitting someone who
is in a compromised position; such as being prone, staggered, attacked
from behind or incapacitated (like stuns).

After 20 hits, you need to recharge the sword by clicking it with the
right mouse button. After an interaction timer, the weapon recharges to
full. You can do this early if you'd like.

Energy swords default to WEIGHT_CLASS_HUGE while active.

## Why It's Good For The Game

I've seen a few folk complain about a lack of particularly interesting
and potent melee weapons that might be floating around to find and
acquire. It'd also be somewhat funny for an actual traitor to have to
get through a pack of goons wielding shitty knockoffs of their own
energy sword.

This was actually my first ever idea for a PR back when I was first
starting the game but had absolutely no idea as to how to code or
anything. I was hardstuck on this for a long ass time. Now I guess I'm
doing it because I was reminded abotu that fact.

## Changelog
🆑
add: Adds the surplus energy sword; the mall katana of the future. It
cuts like shit, but if you're desperate enough, you could kill someone
with it. Just remember to keep it charged.
balance: Energy swords are huge objects while activated.
/🆑

---------

Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com>
Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2025-08-21 20:08:50 +02:00

156 lines
5.4 KiB
Plaintext

/datum/market_item/weapon
category = "Weapons"
abstract_path = /datum/market_item/weapon
/datum/market_item/weapon/bear_trap
name = "Bear Trap"
desc = "Get the janitor back at his own game with this affordable prank kit."
item = /obj/item/restraints/legcuffs/beartrap
price_min = CARGO_CRATE_VALUE * 1.5
price_max = CARGO_CRATE_VALUE * 2.75
stock_max = 3
availability_prob = 40
/datum/market_item/weapon/shotgun_dart
name = "Box of XL Shotgun Darts"
desc = "These handy darts can be filled up with any chemical and be shot with a shotgun! \
Prank your friends by shooting them with laughter! \
Not recommended for commercial use."
item = /obj/item/storage/box/large_dart
price_min = CARGO_CRATE_VALUE * 1.375
price_max = CARGO_CRATE_VALUE * 2.875
stock_max = 4
availability_prob = 40
/datum/market_item/weapon/buckshot
name = "Box of Buckshot Shells"
desc = "It wasn't easy since buckshot is so heavily taxed nowadays, but we managed to find \
a large cache of it... somewhere. A word of caution, the stuff may be a tad old."
stock_max = 7
availability_prob = 35
item = /obj/effect/spawner/random/armory/buckshot/sketchy
price_min = CARGO_CRATE_VALUE * 1
price_max = CARGO_CRATE_VALUE * 3
/datum/market_item/weapon/strilka
name = "Ammobox of .310 Strilka"
desc = "Listen, .310 Strilka isn't exactly rare, but if you want it to come through \
any source that isn't the Third Soviet diehards, then you get what you get. \
Some of this is the good stuff. Some of it is surplus. We make no promises, okay?"
stock_max = 7
availability_prob = 35
item = /obj/effect/spawner/random/armory/strilka
price_min = CARGO_CRATE_VALUE
price_max = CARGO_CRATE_VALUE * 2
/datum/market_item/weapon/sks_kit
name = "Sakhno SKS semi-automatic rifle"
desc = "That's right baby, it's a SKS parts kit! Okay, not one of those ancient originals, but it \
may as well be ancient at this point. Just slap it together in some corner in maint and you've \
got yourself a fully constructed SKS! It doesn't even jam! Why the fuck did they make those Third \
Soviet soldiers use the Sakhno M2442 Army anyway? This thing is the shit! That means good. BUY IT."
item = /obj/item/weaponcrafting/gunkit/sks
price_min = CARGO_CRATE_VALUE * 1
price_max = CARGO_CRATE_VALUE * 3
stock_max = 5
availability_prob = 90
/datum/market_item/weapon/bone_spear
name = "Bone Spear"
desc = "Authentic tribal spear, made from real bones! A steal at any price, especially if you're a caveman."
item = /obj/item/spear/bonespear
price_min = CARGO_CRATE_VALUE
price_max = CARGO_CRATE_VALUE * 1.5
stock_max = 3
availability_prob = 60
/datum/market_item/weapon/chainsaw
name = "Chainsaw"
desc = "A lumberjack's best friend, perfect for cutting trees or limbs efficiently."
item = /obj/item/chainsaw
price_min = CARGO_CRATE_VALUE * 1.75
price_max = CARGO_CRATE_VALUE * 3
stock_max = 1
availability_prob = 35
/datum/market_item/weapon/switchblade
name = "Switchblade"
desc = "Tunnel Snakes rule!"
item = /obj/item/switchblade
price_min = CARGO_CRATE_VALUE * 1.25
price_max = CARGO_CRATE_VALUE * 1.75
stock_max = 3
availability_prob = 45
/datum/market_item/weapon/carpenter_hammer
name = "Carpenter hammer"
desc = "When you really want to look like a psycho..."
item = /obj/item/carpenter_hammer
price_min = CARGO_CRATE_VALUE * 1
price_max = CARGO_CRATE_VALUE * 1.25
stock_max = 2
availability_prob = 65
/datum/market_item/weapon/emp_grenade
name = "EMP Grenade"
desc = "Use this grenade for SHOCKING results!"
item = /obj/item/grenade/empgrenade
price_min = CARGO_CRATE_VALUE * 0.5
price_max = CARGO_CRATE_VALUE * 2
stock_max = 2
availability_prob = 50
/datum/market_item/weapon/fisher
name = "SC/FISHER Saboteur Handgun"
desc = "A self-recharging, compact pistol that disrupts lights, cameras, APCs, turrets and more, if only temporarily. Also usable in melee."
item = /obj/item/gun/energy/recharge/fisher
price_min = CARGO_CRATE_VALUE * 2
price_max = CARGO_CRATE_VALUE * 4
stock_max = 1
availability_prob = 75
/datum/market_item/weapon/dimensional_bomb
name = "Multi-Dimensional Bomb Core"
desc = "A special bomb core, one of a kind, for all your 'terraforming gone wrong' purposes."
item = /obj/item/bombcore/dimensional
price_min = CARGO_CRATE_VALUE * 40
price_max = CARGO_CRATE_VALUE * 50
stock_max = 1
availability_prob = 15
/datum/market_item/weapon/giant_wrench_parts
name = "Big Slappy parts"
desc = "Cheap illegal Big Slappy parts. The fastest and statistically most dangerous wrench."
item = /obj/item/weaponcrafting/giant_wrench
price_min = CARGO_CRATE_VALUE * 2
price_max = CARGO_CRATE_VALUE * 5
stock_max = 1
availability_prob = 25
/datum/market_item/weapon/liberator
name = "illegal 3D printer designs"
desc = "Designs for a dirt cheap 3D printable gun, well known for exploding in unfortunate assistants' hands."
item = /obj/item/disk/design_disk/liberator
price_min = CARGO_CRATE_VALUE * 2
price_max = CARGO_CRATE_VALUE * 5
stock_max = 1
availability_prob = 35
/datum/market_item/weapon/surplus_esword
name = "Type I 'Iaito' Energy Sword"
desc = "A mass-produced energy sword. It is functionally worse than a milspec energy sword commonly found amongst paramilitary organizations. \
But hey, better than nothing. Does have some power supply problems, but nothing that a bit of percussive maintenance can't fix."
item = /obj/item/melee/energy/sword/surplus
price_min = CARGO_CRATE_VALUE * 2
price_max = CARGO_CRATE_VALUE * 5
stock_max = 2
availability_prob = 80