Skip to content

Commit

Permalink
Melee Code Cleanup (#2932)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
Mostly cleaning up paths and de parenting some items like kitchen knife,
clay more, or null rod, sprite and code organization.

adds some stuff for scrap weapons and a cargo machete but nothing player
facing besides a minor buff to scrap armour (rare drop from hostile rn).
I'll work on implementing them in a second pr

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game
Makes it easier to work on melee code by making everything a lot clearer

<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

## Changelog

:cl:
code: bunch of code organization related to melee
refactor: cleaned up a bunch of melee items to have better inheritance
and paths
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

---------

Signed-off-by: FalloutFalcon <[email protected]>
  • Loading branch information
FalloutFalcon authored Sep 23, 2024
1 parent b364877 commit f213d6c
Show file tree
Hide file tree
Showing 248 changed files with 2,208 additions and 4,527 deletions.
2 changes: 1 addition & 1 deletion _maps/RandomRuins/BeachRuins/beach_ancient_ruin.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@
/turf/open/floor/plasteel/mono,
/area/ruin/beach/complex)
"wV" = (
/obj/item/kitchen/knife/hunting{
/obj/item/melee/knife/hunting{
name = "machete";
pixel_y = 8;
desc = "Space vines HATE this one simple trick!"
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/BeachRuins/beach_crashed_engineer.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@
/obj/machinery/atmospherics/components/unary/passive_vent{
dir = 1
},
/obj/item/fireaxe{
/obj/item/melee/axe/fire{
name = "rusty fire axe"
},
/turf/open/floor/engine/airless,
Expand Down
9 changes: 4 additions & 5 deletions _maps/RandomRuins/BeachRuins/beach_fishing_hut.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
/obj/structure/closet/cabinet,
/obj/item/pneumatic_cannon/speargun,
/obj/item/storage/backpack/magspear_quiver,
/obj/item/kitchen/knife/hunting,
/obj/item/melee/knife/hunting,
/turf/open/floor/wood,
/area/ruin/beach)
"kr" = (
Expand Down Expand Up @@ -529,7 +529,7 @@
dir = 6
},
/obj/structure/table/reinforced,
/obj/item/kitchen/knife/butcher,
/obj/item/melee/knife/butcher,
/turf/open/floor/plastic,
/area/ruin/beach)
"wg" = (
Expand Down Expand Up @@ -1032,7 +1032,7 @@
"Os" = (
/obj/structure/table/wood/reinforced,
/obj/effect/turf_decal/corner/opaque/pink/diagonal,
/obj/item/kitchen/knife{
/obj/item/melee/knife/kitchen{
pixel_y = 12;
pixel_x = 9
},
Expand All @@ -1052,7 +1052,7 @@
/obj/structure/closet/cabinet,
/obj/item/pneumatic_cannon/speargun,
/obj/item/storage/backpack/magspear_quiver,
/obj/item/kitchen/knife/hunting,
/obj/item/melee/knife/hunting,
/obj/machinery/light/small/directional/east{
light_color = "#d8b1b1"
},
Expand Down Expand Up @@ -1244,7 +1244,6 @@
/turf/open/water/beach/deep,
/area/overmap_encounter/planetoid/beachplanet/explored)
"Vt" = (
/obj/item/nullrod/carp,
/obj/structure/bed/dogbed,
/obj/effect/decal/cleanable/dirt,
/turf/open/floor/wood/walnut,
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/BeachRuins/beach_float_resort.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
/turf/open/water/beach,
/area/overmap_encounter/planetoid/beachplanet/explored)
"eZ" = (
/obj/item/melee/roastingstick,
/obj/item/roastingstick,
/turf/open/floor/wood{
light_range = 2
},
Expand Down
4 changes: 2 additions & 2 deletions _maps/RandomRuins/BeachRuins/beach_ocean_town.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@
/obj/effect/turf_decal/weather/sand{
dir = 5
},
/obj/item/melee/roastingstick,
/obj/item/roastingstick,
/obj/item/reagent_containers/food/snacks/sausage,
/turf/open/floor/plating/dirt{
light_range = 2
Expand Down Expand Up @@ -2304,7 +2304,7 @@
/obj/effect/turf_decal/weather/sand{
dir = 8
},
/obj/item/melee/roastingstick,
/obj/item/roastingstick,
/turf/open/floor/plating/dirt{
light_range = 2
},
Expand Down
4 changes: 2 additions & 2 deletions _maps/RandomRuins/BeachRuins/beach_pirate_crash.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/area/ruin/beach/piratecrash/storage)
"af" = (
/obj/structure/table/wood,
/obj/item/kitchen/knife,
/obj/item/melee/knife/kitchen,
/obj/effect/turf_decal/corner/opaque/black/diagonal,
/obj/effect/turf_decal/siding/wood{
dir = 1
Expand All @@ -37,7 +37,7 @@
},
/obj/structure/table/wood,
/obj/item/reagent_containers/food/snacks/fishfry,
/obj/item/kitchen/knife/shiv{
/obj/item/melee/knife/shiv{
pixel_x = -6;
pixel_y = 5
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/IceRuins/icemoon_crashed_holemaker.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@
/area/ruin/unpowered/crashed_holemaker)
"oC" = (
/obj/effect/decal/cleanable/dirt/dust,
/obj/item/kitchen/knife,
/obj/item/melee/knife/kitchen,
/turf/open/floor/wood{
icon_state = "wood-broken7"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
/obj/item/restraints/legcuffs/beartrap,
/obj/item/reagent_containers/glass/bottle/venom,
/obj/item/reagent_containers/glass/bottle/curare,
/obj/item/kitchen/knife/combat/survival,
/obj/item/melee/knife/survival,
/obj/effect/decal/cleanable/dirt,
/obj/item/reagent_containers/food/snacks/meat/slab/human,
/obj/item/reagent_containers/food/snacks/meat/slab/human,
Expand Down Expand Up @@ -384,7 +384,7 @@
/obj/effect/decal/cleanable/blood/gibs/torso,
/obj/structure/safe,
/obj/item/ammo_box/a12g/slug,
/obj/item/kitchen/knife/combat,
/obj/item/melee/knife/combat,
/obj/effect/decal/cleanable/dirt,
/obj/effect/decal/cleanable/dirt,
/turf/open/floor/wood,
Expand Down
28 changes: 2 additions & 26 deletions _maps/RandomRuins/IceRuins/icemoon_underground_brazillianlab.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -367,23 +367,6 @@
initial_gas_mix = "ICEMOON_ATMOS"
},
/area/ruin/unpowered)
"sf" = (
/obj/structure/table/wood,
/obj/item/nullrod{
block_chance = 50;
desc = "This massive chart appears to be the layout of a SolGov outpost. It's covered in marks, scribbles in a language you don't recognize, and several stains. It's unusually sturdy.";
icon_state = "blueprints";
item_state = "blueprints";
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi';
name = "facility blueprints";
pixel_y = 10;
righthand_file = 'icons/mob/inhands/items_righthand.dmi';
w_class = 5
},
/turf/open/floor/wood{
initial_gas_mix = "ICEMOON_ATMOS"
},
/area/ruin/unpowered)
"si" = (
/obj/structure/flora/rock/jungle,
/obj/structure/flora/grass/jungle/b,
Expand Down Expand Up @@ -1248,13 +1231,6 @@
},
/turf/open/floor/plating/snowed/smoothed/icemoon,
/area/ruin/unpowered)
"Zs" = (
/obj/structure/table/wood,
/obj/item/banhammer,
/turf/open/floor/wood{
initial_gas_mix = "ICEMOON_ATMOS"
},
/area/ruin/unpowered)

(1,1,1) = {"
aW
Expand Down Expand Up @@ -2252,7 +2228,7 @@ Hb
aW
WH
jy
Zs
ib
WH
WH
WH
Expand Down Expand Up @@ -2284,7 +2260,7 @@ Hb
aW
Br
ib
sf
ib
WH
WH
fB
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/JungleRuins/jungle_paradise.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@
/area/ruin/jungle/paradise/construction)
"eY" = (
/obj/structure/table/reinforced,
/obj/item/kitchen/knife/butcher,
/obj/item/melee/knife/butcher,
/obj/item/clothing/gloves/butchering,
/turf/open/floor/pod/dark,
/area/overmap_encounter/planetoid/cave/explored)
Expand Down
4 changes: 2 additions & 2 deletions _maps/RandomRuins/JungleRuins/jungle_syndicate.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
/turf/open/floor/plating/rust,
/area/ruin/jungle/syndifort/jerry)
"ik" = (
/obj/item/kitchen/knife/combat{
/obj/item/melee/knife/combat{
name = "bushcutter";
force = 18
},
Expand Down Expand Up @@ -627,7 +627,7 @@
/area/ruin/jungle/syndifort/jerry)
"ud" = (
/obj/structure/table,
/obj/item/kitchen/knife/combat{
/obj/item/melee/knife/combat{
name = "bushcutter";
force = 18
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@
/obj/item/cutting_board{
anchored = 1
},
/obj/item/kitchen/knife,
/obj/item/melee/knife/kitchen,
/obj/effect/turf_decal/siding/thinplating/dark,
/turf/open/floor/plasteel/patterned/cargo_one,
/area/ruin/unpowered/listening_post/canteen)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@
/obj/structure/table,
/obj/effect/decal/cleanable/dirt,
/obj/machinery/light/small/directional/east,
/obj/item/kitchen/knife{
/obj/item/melee/knife/kitchen{
pixel_x = 7;
pixel_y = 10
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@
"qj" = (
/obj/effect/turf_decal/corner/opaque/solgovblue/diagonal,
/obj/structure/table/wood,
/obj/item/kitchen/knife,
/obj/item/melee/knife/kitchen,
/turf/open/floor/plasteel/white,
/area/ruin/unpowered/winter_biodome/living_quarters)
"qr" = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@
/area/ruin/unpowered/buried_shrine)
"UF" = (
/obj/structure/stone_tile/block,
/obj/item/claymore/bone{
/obj/item/melee/sword/bone{
pixel_x = 8;
pixel_y = 21
},
Expand All @@ -1823,7 +1823,7 @@
/area/ruin/unpowered/buried_shrine)
"VG" = (
/obj/structure/table/wood,
/obj/item/kitchen/knife/combat/bone,
/obj/item/melee/knife/bone,
/turf/open/floor/plating/asteroid/basalt/lava_land_surface,
/area/ruin/unpowered/buried_shrine)
"Wd" = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
/turf/open/floor/plating/asteroid/basalt/wasteland,
/area/ruin/unpowered/elephant_graveyard)
"bk" = (
/obj/item/kitchen/knife/combat/bone,
/obj/item/melee/knife/bone,
/obj/item/organ/tongue,
/obj/effect/decal/cleanable/blood/old,
/turf/open/floor/plating/asteroid/basalt/wasteland,
Expand Down
10 changes: 5 additions & 5 deletions _maps/RandomRuins/LavaRuins/lavaland_surface_lava_canyon.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
/obj/effect/mob_spawn/human/corpse{
mob_species = /datum/species/lizard/ashwalker
},
/obj/item/spear/bonespear{
/obj/item/melee/spear/bone{
pixel_x = 10;
pixel_y = -2
},
Expand Down Expand Up @@ -611,7 +611,7 @@
/turf/open/floor/plating/asteroid/basalt/lava_land_surface/lit,
/area/overmap_encounter/planetoid/lava/explored)
"pX" = (
/obj/item/claymore/bone{
/obj/item/melee/sword/bone{
pixel_x = -12;
pixel_y = 11
},
Expand Down Expand Up @@ -1101,7 +1101,7 @@
pixel_y = -11;
pixel_x = -7
},
/obj/item/kitchen/knife/combat/bone{
/obj/item/melee/knife/bone{
pixel_x = 10;
pixel_y = -10
},
Expand Down Expand Up @@ -1474,7 +1474,7 @@
/turf/closed/mineral/random/volcanic,
/area/overmap_encounter/planetoid/cave/explored)
"PP" = (
/obj/item/kitchen/knife/combat/bone{
/obj/item/melee/knife/bone{
pixel_x = -2;
pixel_y = 4
},
Expand Down Expand Up @@ -1706,7 +1706,7 @@
pixel_x = -2;
pixel_y = 1
},
/obj/item/spear/bonespear{
/obj/item/melee/spear/bone{
pixel_x = 8;
pixel_y = 14
},
Expand Down
12 changes: 6 additions & 6 deletions _maps/RandomRuins/LavaRuins/lavaland_surface_wrecked_factory.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@
/obj/effect/decal/cleanable/blood{
icon_state = "drip1"
},
/obj/item/spear,
/obj/item/melee/spear,
/obj/item/bodypart/l_arm,
/turf/open/floor/plasteel/dark,
/area/ruin/lavaland/factory/dorms)
Expand Down Expand Up @@ -2691,8 +2691,8 @@
/turf/open/floor/carpet/blue,
/area/ruin/lavaland/factory/manager_office)
"zl" = (
/obj/item/kitchen/knife/combat/survival,
/obj/item/kitchen/knife/combat/survival,
/obj/item/melee/knife/survival,
/obj/item/melee/knife/survival,
/obj/structure/closet/crate/secure/gear,
/turf/open/floor/plasteel/mono,
/area/ruin/lavaland/factory/warehouse)
Expand Down Expand Up @@ -2982,7 +2982,7 @@
dir = 1
},
/obj/machinery/light/directional/west,
/obj/item/kitchen/knife/hunting,
/obj/item/melee/knife/hunting,
/obj/item/clothing/suit/hooded/cloak/goliath,
/obj/effect/spawner/lootdrop/maintenance,
/turf/open/floor/plasteel/white,
Expand Down Expand Up @@ -3828,7 +3828,7 @@
/obj/structure/cable/yellow{
icon_state = "4-8"
},
/obj/item/kitchen/knife/shiv,
/obj/item/melee/knife/shiv,
/turf/open/floor/plasteel/white,
/area/ruin/lavaland/factory/adminstrative)
"LX" = (
Expand Down Expand Up @@ -4302,7 +4302,7 @@
"QM" = (
/obj/structure/table/wood,
/obj/item/cutting_board,
/obj/item/kitchen/knife,
/obj/item/melee/knife/kitchen,
/turf/open/floor/wood,
/area/ruin/lavaland/factory/adminstrative)
"QR" = (
Expand Down
Loading

0 comments on commit f213d6c

Please sign in to comment.