Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Bladeatheon #3391

Closed
wants to merge 109 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
6083109
orginize some weapon sprites
FalloutFalcon Apr 11, 2024
f81394f
more orginzing
FalloutFalcon Apr 11, 2024
ae8b538
new sprites mabye
FalloutFalcon Apr 11, 2024
925010f
fix energy weapon icon path
FalloutFalcon Apr 11, 2024
4adba95
orginizes files
FalloutFalcon Apr 13, 2024
4a76632
cruft
FalloutFalcon Apr 13, 2024
b9c2bdf
yea
FalloutFalcon Apr 13, 2024
e03cb56
orginizes primal and clothing cat (cherrypicked)
FalloutFalcon Mar 21, 2024
4f1bd7f
orginizes some more recipes
FalloutFalcon Apr 13, 2024
57b39e9
recipe cruft
FalloutFalcon Apr 14, 2024
68903db
yea
FalloutFalcon Apr 14, 2024
4053cc9
Merge branch 'master' of https://github.com/shiptest-ss13/Shiptest in…
FalloutFalcon Apr 14, 2024
b6fab46
trailing whitespace
FalloutFalcon Apr 14, 2024
bacc3d4
better sword parent
FalloutFalcon Apr 14, 2024
4ff3443
renove null rod
FalloutFalcon Apr 14, 2024
11bfe91
yuh
FalloutFalcon Apr 14, 2024
ac1b4a2
bad type
FalloutFalcon Apr 14, 2024
7f316d6
remaps chappy armor
FalloutFalcon Apr 14, 2024
f3ded51
ytea
FalloutFalcon Apr 14, 2024
dc8d07f
axe parent type, removes magic hammers
FalloutFalcon Apr 14, 2024
e4d9d66
stuff
FalloutFalcon Apr 14, 2024
e4671a6
removing cult weapons
FalloutFalcon Apr 14, 2024
3fb28b7
oops
FalloutFalcon Apr 14, 2024
e2fccf8
oops
FalloutFalcon Apr 14, 2024
d26bf9f
what if i just deleted the cult file haha so silly
FalloutFalcon Apr 15, 2024
2171f22
Revert "what if i just deleted the cult file haha so silly"
FalloutFalcon Apr 15, 2024
aa6115b
fixing sprites by removing stuff mostly c:
FalloutFalcon Apr 15, 2024
83a92e0
removes bostaff cruft item (tho i do want a cool matrial staff)
FalloutFalcon Apr 15, 2024
d7a2276
almost passing i think
FalloutFalcon Apr 15, 2024
f8a9ff4
damn bone spear was like better then a plasma spear what the hell
FalloutFalcon Apr 15, 2024
9ecd1ea
new weapons!
FalloutFalcon Apr 15, 2024
d0fa531
gives scrap vest ok armour
FalloutFalcon Apr 15, 2024
c656b54
scrap armor
FalloutFalcon Apr 15, 2024
133c694
swords blulky by default
FalloutFalcon Apr 15, 2024
ddfb8df
no armour for tribal pins
FalloutFalcon Apr 15, 2024
6ab22f6
removes some random cruft sprites to clean up items_and_weapons
FalloutFalcon Apr 15, 2024
e7faee2
renames items_and_weapons because why is its name so big omg
FalloutFalcon Apr 15, 2024
1df55bc
more dmi stuff
FalloutFalcon Apr 15, 2024
9f239b6
knife parent
FalloutFalcon Apr 15, 2024
4619cec
combat knife doesnt realyl affect survival or bone
FalloutFalcon Apr 15, 2024
a82ab89
insane
FalloutFalcon Apr 15, 2024
9df3b5f
minor path fixing
FalloutFalcon Apr 15, 2024
2b37b9e
yea
FalloutFalcon Apr 16, 2024
504566f
Merge branch 'master' into improv
FalloutFalcon Apr 24, 2024
1cbb43a
yea
FalloutFalcon Apr 24, 2024
98733cc
make fixing new ruins made during this pr easier to fix
FalloutFalcon Apr 24, 2024
4212422
spears
FalloutFalcon Apr 24, 2024
12c6006
This hurt. Merge branch 'master' of https://github.com/shiptest-ss13/…
FalloutFalcon Sep 13, 2024
5902a54
regex and banishing tribal.dm once more
FalloutFalcon Sep 13, 2024
34f272d
regex
FalloutFalcon Sep 13, 2024
d0f04f6
oops!
FalloutFalcon Sep 13, 2024
aa8ce55
repath kitcken knives
FalloutFalcon Sep 13, 2024
3a561a9
bunch more repaths from merge
FalloutFalcon Sep 13, 2024
efa1cba
kitchen not kitcken
FalloutFalcon Sep 13, 2024
8c66360
more repaths
FalloutFalcon Sep 13, 2024
7ba778d
why did regex add new lines wtf
FalloutFalcon Sep 13, 2024
4891293
yea!
FalloutFalcon Sep 13, 2024
f57b1d4
Merge branch 'master' into oops-all-refactors
FalloutFalcon Sep 16, 2024
eecbfef
Merge branch 'master' into oops-all-refactors
FalloutFalcon Sep 19, 2024
b3a5f7f
transforming component, stunbaton span defines, wip items
FalloutFalcon Sep 19, 2024
9e42991
oh this is transforming weapon pr now?
FalloutFalcon Sep 19, 2024
0f0c30a
the repathing... god if this conflict merges
FalloutFalcon Sep 19, 2024
c79296a
updates icon states
FalloutFalcon Sep 19, 2024
c5f0cce
more missing icon_state
FalloutFalcon Sep 19, 2024
0b8b15f
better unit tests to help me
FalloutFalcon Sep 19, 2024
85117b8
tweak to test, only fail if only 1 inhand is missing cause then its c…
FalloutFalcon Sep 19, 2024
8970218
tweaks to unit tests again
FalloutFalcon Sep 19, 2024
e1ef45b
what if i just did it again
FalloutFalcon Sep 19, 2024
a72ffaf
tweaks so that its eaiser to search for _w and _on
FalloutFalcon Sep 19, 2024
c7a992e
bad_types?
FalloutFalcon Sep 19, 2024
2abc862
oops!
FalloutFalcon Sep 19, 2024
5aa1d01
isbadpath
FalloutFalcon Sep 19, 2024
8767f3c
ah wrong name for that
FalloutFalcon Sep 19, 2024
19d7125
to save me some time
FalloutFalcon Sep 19, 2024
5d41d1e
oh i see
FalloutFalcon Sep 19, 2024
c5ccfcb
I have a feeling its broken
FalloutFalcon Sep 19, 2024
1a89aba
more useful test one sec
FalloutFalcon Sep 19, 2024
33a7a17
wow i forgot that
FalloutFalcon Sep 19, 2024
2f95dd4
thats prob why these werent working
FalloutFalcon Sep 19, 2024
5508d0b
only run overkill icon tests when asked
FalloutFalcon Sep 19, 2024
3f5f71e
this looks really ugly tbh
FalloutFalcon Sep 19, 2024
faf2610
prob a cleaner way to do this
FalloutFalcon Sep 19, 2024
071b117
this is so out of scope
FalloutFalcon Sep 19, 2024
198bab2
can now work on pedang
FalloutFalcon Sep 19, 2024
71a3bef
pedang wip
FalloutFalcon Sep 19, 2024
4137a82
yea
FalloutFalcon Sep 22, 2024
16d57a6
component based behavior
FalloutFalcon Sep 23, 2024
30b6c42
Merge branch 'master' of https://github.com/shiptest-ss13/Shiptest in…
FalloutFalcon Sep 23, 2024
ad27e30
no longer doing charged parent type. we all in with the componenet
FalloutFalcon Sep 23, 2024
7523426
more stuff working as charged comp
FalloutFalcon Sep 23, 2024
0edcf07
get_best_shield needs to be refactored but whatever.
FalloutFalcon Sep 23, 2024
5fd0bae
riposte!
FalloutFalcon Sep 23, 2024
cd9e666
holy crap i love reposte
FalloutFalcon Sep 24, 2024
bfd353a
more improvments to charged.
FalloutFalcon Sep 24, 2024
a3e8fe6
shocking
FalloutFalcon Sep 24, 2024
05f5697
attack_cooldown
FalloutFalcon Sep 29, 2024
43b0223
diffrent cd's pending balance
FalloutFalcon Sep 30, 2024
2892509
better force string and readds world icons i somehow removed.
FalloutFalcon Sep 30, 2024
21cf5f0
energy weapons dont need the transforming parent type
FalloutFalcon Sep 30, 2024
57de0bf
tweaks to two handed stuff to make it more maintaiable
FalloutFalcon Sep 30, 2024
235e47e
Merge branch 'master' of https://github.com/shiptest-ss13/Shiptest in…
FalloutFalcon Sep 30, 2024
e551a82
better duel energy weapon path
FalloutFalcon Sep 30, 2024
ca0606d
70 lines only for halberds. not bad
FalloutFalcon Sep 30, 2024
274188a
oh its just a varedit
FalloutFalcon Sep 30, 2024
28fcdaf
few things broke. those are fixed now
FalloutFalcon Sep 30, 2024
78b3f4e
yea
FalloutFalcon Sep 30, 2024
63852fa
mass sword stuff...
FalloutFalcon Sep 30, 2024
5f429b7
sound design
FalloutFalcon Oct 1, 2024
b50d974
the sledge
FalloutFalcon Oct 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _maps/RandomRuins/BeachRuins/beach_treasure_cove.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@
pixel_x = -6;
pixel_y = 10
},
/obj/item/melee/transforming/energy/sword/saber/pirate/red{
/obj/item/melee/energy/sword/saber/pirate/red{
pixel_y = 8;
pixel_x = 10
},
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 @@ -1016,7 +1016,7 @@
/obj/effect/turf_decal/spline/fancy/transparent/neutral/corner{
dir = 1
},
/obj/item/dualsaber/toy,
/obj/item/melee/duelenergy/saber/toy,
/turf/open/floor/plasteel/icemoon,
/area/ruin/unpowered/crashed_holemaker)
"rm" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/JungleRuins/jungle_cavecrew.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@
pixel_y = -8;
pixel_x = 5
},
/obj/item/melee/transforming/energy/sword/saber/pirate/red,
/obj/item/melee/energy/sword/saber/pirate/red,
/turf/open/floor/wood,
/area/ruin/jungle/cavecrew/dormitories)
"Dh" = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2482,7 +2482,7 @@
icon_state = "gib3-old";
pixel_x = -6
},
/obj/item/melee/transforming/energy/sword/saber/pirate/yellow{
/obj/item/melee/energy/sword/saber/pirate/yellow{
pixel_x = -5;
pixel_y = 16
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@
/area/overmap_encounter/planetoid/lava/explored)
"zb" = (
/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner{
loot = list(/obj/item/melee/transforming/cleaving_saw,/obj/item/gun/energy/kinetic_accelerator,/obj/item/keycard/gatedrop/lavacanyon);
loot = list(/obj/item/melee/cleaving_saw,/obj/item/gun/energy/kinetic_accelerator,/obj/item/keycard/gatedrop/lavacanyon);
},
/turf/open/floor/plating/asteroid/basalt/lava_land_surface,
/area/overmap_encounter/planetoid/cave/explored)
Expand Down
4 changes: 2 additions & 2 deletions _maps/RandomRuins/SpaceRuins/spacemall.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -6318,7 +6318,7 @@
"xM" = (
/obj/structure/rack,
/obj/effect/turf_decal/corner/transparent/black/diagonal,
/obj/item/dualsaber/toy,
/obj/item/melee/duelenergy/saber/toy,
/turf/open/floor/plasteel,
/area/ruin/space/has_grav/spacemall/shop2)
"xN" = (
Expand Down Expand Up @@ -11448,7 +11448,7 @@
/turf/open/floor/plating/grass,
/area/ruin/space/has_grav/spacemall)
"QO" = (
/obj/item/dualsaber/toy,
/obj/item/melee/duelenergy/saber/toy,
/obj/item/toy/redbutton{
pixel_x = 14
},
Expand Down
12 changes: 6 additions & 6 deletions _maps/map_files/generic/CentCom.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,7 @@
/obj/item/clothing/suit/armor/tdome/red,
/obj/item/clothing/head/helmet/thunderdome,
/obj/item/melee/baton/loaded,
/obj/item/melee/transforming/energy/sword/saber/red,
/obj/item/melee/energy/sword/saber/red,
/obj/effect/turf_decal/industrial/warning{
dir = 4
},
Expand Down Expand Up @@ -3962,7 +3962,7 @@
/obj/item/clothing/suit/armor/tdome/green,
/obj/item/clothing/head/helmet/thunderdome,
/obj/item/melee/baton/loaded,
/obj/item/melee/transforming/energy/sword/saber/green,
/obj/item/melee/energy/sword/saber/green,
/obj/effect/turf_decal/industrial/warning{
dir = 8
},
Expand Down Expand Up @@ -6922,7 +6922,7 @@
/obj/effect/turf_decal/corner/opaque/blue{
dir = 8
},
/obj/item/melee/transforming/energy/ctf,
/obj/item/melee/energy/ctf,
/turf/open/floor/plasteel/dark,
/area/ctf)
"cEn" = (
Expand Down Expand Up @@ -7850,7 +7850,7 @@
/obj/effect/turf_decal/corner/opaque/red{
dir = 8
},
/obj/item/melee/transforming/energy/ctf,
/obj/item/melee/energy/ctf,
/turf/open/floor/plasteel/dark,
/area/ctf)
"eDS" = (
Expand Down Expand Up @@ -8401,7 +8401,7 @@
/obj/item/clothing/suit/armor/tdome/green,
/obj/item/clothing/head/helmet/thunderdome,
/obj/item/melee/baton/loaded,
/obj/item/melee/transforming/energy/sword/saber/green,
/obj/item/melee/energy/sword/saber/green,
/obj/effect/turf_decal/industrial/warning{
dir = 8
},
Expand Down Expand Up @@ -14416,7 +14416,7 @@
/obj/item/clothing/suit/armor/tdome/red,
/obj/item/clothing/head/helmet/thunderdome,
/obj/item/melee/baton/loaded,
/obj/item/melee/transforming/energy/sword/saber/red,
/obj/item/melee/energy/sword/saber/red,
/obj/effect/turf_decal/industrial/warning{
dir = 4
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/pirate/pirate_noderider.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@
/obj/item/storage/box/handcuffs,
/obj/item/clothing/glasses/meson,
/obj/item/megaphone,
/obj/item/melee/transforming/energy/sword/saber/red,
/obj/item/melee/energy/sword/saber/red,
/obj/item/pinpointer/crew,
/obj/item/clothing/mask/gas/atmos,
/obj/item/clothing/mask/whistle,
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/roumain/srm_elder.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@
/obj/vehicle/ridden/wheelchair{
dir = 4
},
/obj/item/melee/transforming/cleaving_saw/old,
/obj/item/melee/cleaving_saw/old,
/turf/open/floor/ship/dirt/dark,
/area/ship/bridge)
"rj" = (
Expand Down
4 changes: 2 additions & 2 deletions _maps/shuttles/solgov/solgov_chronicle.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1947,8 +1947,8 @@
/turf/open/floor/plasteel/freezer,
/area/ship/crew/dorm)
"ti" = (
/obj/item/energyhalberd/purple,
/obj/item/energyhalberd/purple,
/obj/item/melee/duelenergy/halberd/purple,
/obj/item/melee/duelenergy/halberd/purple,
/obj/effect/turf_decal/techfloor{
dir = 1
},
Expand Down
10 changes: 9 additions & 1 deletion code/__DEFINES/combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@
//Actual combat defines

//click cooldowns, in tenths of a second, used for various combat actions
#define HEAVY_WEAPON_CD 10
#define CLICK_CD_MELEE 8
#define LIGHT_WEAPON_CD 6
#define CLICK_CD_RANGE 4
#define CLICK_CD_RAPID 2
#define CLICK_CD_CLICK_ABILITY 6
#define CLICK_CD_BREAKOUT 100
#define CLICK_CD_HANDCUFFED 10
#define CLICK_CD_RESIST 20
#define CLICK_CD_RESIST 1
#define CLICK_CD_GRABBING 10
#define CLICK_CD_LOOK_UP 5

Expand Down Expand Up @@ -74,6 +76,12 @@
#define PROJECTILE_ATTACK 3
#define THROWN_PROJECTILE_ATTACK 4
#define LEAP_ATTACK 5
#define ALL_ATTACK_TYPES list(MELEE_ATTACK, UNARMED_ATTACK, PROJECTILE_ATTACK, THROWN_PROJECTILE_ATTACK, LEAP_ATTACK)
#define NON_PROJECTILE_ATTACKS list(MELEE_ATTACK, UNARMED_ATTACK, LEAP_ATTACK)

// the standard parry time out time
#define PARRY_DEFAULT_TIMEOUT 0.75 SECONDS
#define PARRY_RIPOST 0.50 SECONDS

//attack visual effects
#define ATTACK_EFFECT_PUNCH "punch"
Expand Down
6 changes: 0 additions & 6 deletions code/__DEFINES/dcs/signals/signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@
#define COMSIG_TRY_STORAGE_RETURN_INVENTORY "storage_return_inventory" //(list/list_to_inject_results_into, recursively_search_inside_storages = TRUE)
#define COMSIG_TRY_STORAGE_CAN_INSERT "storage_can_equip" //(obj/item/insertion_candidate, mob/user, silent) - returns bool

// /datum/component/two_handed signals
#define COMSIG_TWOHANDED_WIELD "twohanded_wield" //from base of datum/component/two_handed/proc/wield(mob/living/carbon/user): (/mob/user)
#define COMPONENT_TWOHANDED_BLOCK_WIELD 1
#define COMSIG_TWOHANDED_UNWIELD "twohanded_unwield" //from base of datum/component/two_handed/proc/unwield(mob/living/carbon/user): (/mob/user)


// /datum/action signals
#define COMSIG_ACTION_TRIGGER "action_trigger" //from base of datum/action/proc/Trigger(): (datum/action)
#define COMPONENT_ACTION_BLOCK_TRIGGER 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#define COMPONENT_BLOCK_SHARPEN_BLOCKED 2
#define COMPONENT_BLOCK_SHARPEN_ALREADY 4
#define COMPONENT_BLOCK_SHARPEN_MAXED 8

#define COMSIG_ITEM_USE_CELL "item_use_cell"

#define COMSIG_TOOL_IN_USE "tool_in_use" ///from base of [/obj/item/proc/tool_check_callback]: (mob/living/user)
#define COMSIG_TOOL_START_USE "tool_start_use" ///from base of [/obj/item/proc/tool_start_check]: (mob/living/user)
Expand Down Expand Up @@ -66,3 +68,8 @@
#define COMSIG_ITEM_SPLIT_VALUE 1
#define COMSIG_ITEM_SPLIT_PROFIT "item_split_profits" //Called when getting the item's exact ratio for cargo's profit.
#define COMSIG_ITEM_SPLIT_PROFIT_DRY "item_split_profits_dry" //Called when getting the item's exact ratio for cargo's profit, without selling the item.

// /datum/component/two_handed signals
#define COMSIG_TWOHANDED_WIELD "twohanded_wield" //from base of datum/component/two_handed/proc/wield(mob/living/carbon/user): (/mob/user)
#define COMPONENT_TWOHANDED_BLOCK_WIELD 1
#define COMSIG_TWOHANDED_UNWIELD "twohanded_unwield" //from base of datum/component/two_handed/proc/unwield(mob/living/carbon/user): (/mob/user)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// /datum/component/transforming signals

/// From /datum/component/transforming/proc/on_attack_self(obj/item/source, mob/user): (obj/item/source, mob/user, active)
#define COMSIG_TRANSFORMING_PRE_TRANSFORM "transforming_pre_transform"
/// Return COMPONENT_BLOCK_TRANSFORM to prevent the item from transforming.
#define COMPONENT_BLOCK_TRANSFORM (1<<0)
/// From /datum/component/transforming/proc/do_transform(obj/item/source, mob/user): (obj/item/source, mob/user, active)
#define COMSIG_TRANSFORMING_ON_TRANSFORM "transforming_on_transform"
/// Return COMPONENT_NO_DEFAULT_MESSAGE to prevent the transforming component from displaying the default transform message / sound.
#define COMPONENT_NO_DEFAULT_MESSAGE (1<<0)

#define COMSIG_ITEM_FORCE_TRANSFORM "item_force_transform"
5 changes: 5 additions & 0 deletions code/__DEFINES/dcs/signals/signals_obj/signals_object.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@
#define COMSIG_OBJ_HIDE "obj_hide"
/// from base of [/atom/proc/obj_destruction]: (damage_flag)
#define COMSIG_OBJ_DESTRUCTION "obj_destruction"

/// Sent from /obj/item/update_weight_class(). (old_w_class, new_w_class)
#define COMSIG_ITEM_WEIGHT_CLASS_CHANGED "item_weight_class_changed"
/// Sent from /obj/item/update_weight_class(), to its loc. (obj/item/changed_item, old_w_class, new_w_class)
#define COMSIG_ATOM_CONTENTS_WEIGHT_CLASS_CHANGED "atom_contents_weight_class_changed"
3 changes: 3 additions & 0 deletions code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

#define isgenerator(A) (istype(A, /generator))

#define isbadpath(A) (A == initial(A.bad_type))
#define isbadtype(A) (A.type == A.bad_type)

//Turfs
//#define isturf(A) (istype(A, /turf)) This is actually a byond built-in. Added here for completeness sake.

Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai
#define TRAIT_NO_STORAGE_INSERT "no_storage_insert" //cannot be inserted in a storage.
#define TRAIT_T_RAY_VISIBLE "t-ray-visible" // Visible on t-ray scanners if the atom/var/level == 1
#define TRAIT_NO_TELEPORT "no-teleport" //you just can't
/// A transforming item that is actively extended / transformed
#define TRAIT_TRANSFORM_ACTIVE "active_transform"
#define TRAIT_WIELDED "wielded" //The item is currently being wielded

//quirk traits
Expand Down
1 change: 1 addition & 0 deletions code/_compile_options.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@

#ifdef ALL_TESTS
#define BASIC_TESTS
//#define EXTRA_ICON_TESTS
#define CREATE_AND_DESTROY_TEST
#define PLANET_GEN_TEST
#define RUIN_PLACEMENT_TEST
Expand Down
6 changes: 3 additions & 3 deletions code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
if((I.item_flags & SURGICAL_TOOL) && user.a_intent == INTENT_HELP)
if(attempt_initiate_surgery(I, src, user))
return TRUE
user.changeNext_move(CLICK_CD_MELEE)
return I.attack(src, user)

/mob/living/attack_hand(mob/living/user)
Expand All @@ -94,6 +93,8 @@
* * mob/living/user - The mob hitting with this item
*/
/obj/item/proc/attack(mob/living/M, mob/living/user)
user.changeNext_move(attack_cooldown)

if(SEND_SIGNAL(src, COMSIG_ITEM_ATTACK, M, user) & COMPONENT_ITEM_NO_ATTACK)
return
SEND_SIGNAL(user, COMSIG_MOB_ITEM_ATTACK, M, user)
Expand Down Expand Up @@ -126,14 +127,13 @@
log_combat(user, M, "attacked", src.name, "(INTENT: [uppertext(user.a_intent)]) (DAMTYPE: [uppertext(damtype)])")
add_fingerprint(user)


/// The equivalent of the standard version of [/obj/item/proc/attack] but for object targets.
/obj/item/proc/attack_obj(obj/O, mob/living/user)
if(SEND_SIGNAL(src, COMSIG_ITEM_ATTACK_OBJ, O, user) & COMPONENT_NO_ATTACK_OBJ)
return
if(item_flags & NOBLUDGEON)
return
user.changeNext_move(CLICK_CD_MELEE)
user.changeNext_move(attack_cooldown)
user.do_attack_animation(O)
O.attacked_by(src, user)

Expand Down
Loading
Loading