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

adds a bikehorn esword for the clown #22723

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 34 additions & 0 deletions code/game/objects/items/melee/energy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,40 @@
else
return ..()

/obj/item/melee/transforming/energy/sword/bikehorn
name = "bike horn"
desc = "A horn off of a bicycle."
icon_state = "swordhonk"
lefthand_file = 'icons/mob/inhands/weapons/swords_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/swords_righthand.dmi'
icon_state_on = "swordpink"
saber_color = null
light_color = "#ff3399"
force = 0
throwforce = 0
attack_verb = list("HONKED")
hitsound = null

/obj/item/melee/transforming/energy/sword/bikehorn/Initialize(mapload)
. = ..()
AddComponent(/datum/component/squeak, list('sound/items/bikehorn.ogg'=1), 50)
qdel(GetComponent(/datum/component/cleave_attack))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of deleting the component and adding it back every time it's toggled off and on, you should add a trait that hides the examine description of the cleave attack and blocking components.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am too stupid to figure this out which is why I left it for blocking, if you could help out that'd be great.
I removed the cleave attack since I removed the damage when it's in the bikehorn state, I thought it was a bit silly to leave in.


/obj/item/melee/transforming/energy/sword/bikehorn/attack(mob/living/carbon/M, mob/living/carbon/user)
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "honk", /datum/mood_event/honk)
return ..()

/obj/item/melee/transforming/energy/sword/bikehorn/transform_weapon(mob/living/user, supress_message_text)
. = ..()
if(active)
name += " energy sword"
desc += " It has a powerful hardlight sword attached to it."
AddComponent(/datum/component/cleave_attack)
else
name = initial(name)
desc = initial(desc)
qdel(GetComponent(/datum/component/cleave_attack))

/obj/item/melee/transforming/energy/sword/pirate
name = "energy cutlass"
desc = "Arrrr matey."
Expand Down
7 changes: 7 additions & 0 deletions code/modules/uplink/uplink_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2579,6 +2579,13 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
restricted_roles = list("Research Director", "Scientist", "Roboticist")
include_objectives = list(/datum/objective/hijack, /datum/objective/martyr) //yogs // >Increase price to reduce grief > limit it to hijack only :think:

/datum/uplink_item/role_restricted/honksword
name = "Bike Horn Energy Sword"
desc = "All the features of the original energy sword, with additional fun! Functionally identical to a bike horn when concealed. Activating it produces a loud, distinctive noise."
item = /obj/item/melee/transforming/energy/sword/bikehorn
cost = 9 //1tc more than esword as it's a little more stealthy
restricted_roles = list("Clown")

/datum/uplink_item/role_restricted/clowncar
name = "Clown Car"
desc = "The Clown Car is the ultimate transportation method for any worthy clown! \
Expand Down
Binary file modified icons/mob/inhands/weapons/swords_lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/weapons/swords_righthand.dmi
Binary file not shown.
Binary file modified icons/obj/weapons/energy.dmi
Binary file not shown.
Loading