mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-09 15:59:24 +00:00
* [READY] Space Ninja Rework (#53492) * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Revert "Automatic changelog compile [ci skip]" This reverts commit 48a63defa644ec9826ee5eb1736e5158d2a636d4. * Revert "Automatic changelog compile [ci skip]" This reverts commit cb68f4988edd9d841c4203eecee2067a49ce75c5. * Revert "Revert "Automatic changelog compile [ci skip]"" This reverts commit e6e1f1ef53ee6611c334efcae6ca7c102edaf351. * Revert "Revert "Automatic changelog compile [ci skip]"" This reverts commit 1782210527b9819772c0781122bec35b7979bf7d. * Update changelog.html * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Move suit_initialization into better location * Clean up cost check * Clean up net using * Clean up Ninja Star * Clean Up Ninja Stealth * Clean Up Sword Recall * Move the event file * Re-Merge the Changes * Get your ninja code out of my human.dm * Move the event into events folder and clean it up * Can the old space ninja antagonist file * Roll in the shiny new bad boy * Get rid of actions/ninja.dm and move its info into respective ability files * Update one_click_antag with new ninja * Move proc out of ninja code into proper location * Update the dme properly this time * Update code/modules/ninja/suit/ninja_equipment_actions/ninja_suit_initialisation.dm Co-authored-by: Fikou <piotrbryla@ onet.pl> * Update code/modules/ninja/suit/gloves.dm Co-authored-by: Fikou <piotrbryla@ onet.pl> * Update the antagonist file * Update ninjaDrainAct * Re-Add MGS Voice Lines * Up the Katana Damage Back Up to 30 * Attempting a Risky Manuever * Adjusting some numbers to fit the delta time PR * Fix Var Names and do a return ..() * Remove Unused Defines, Update qdels to QDEL_NULLs * Update code/modules/antagonists/space_ninja/space_ninja.dm Co-authored-by: Rohesie <rohesie@ gmail.com> * Update code/modules/antagonists/space_ninja/space_ninja.dm Co-authored-by: Rohesie <rohesie@ gmail.com> * Update code/modules/events/space_ninja.dm Co-authored-by: Rohesie <rohesie@ gmail.com> * Update code/modules/ninja/energy_katana.dm Co-authored-by: Rohesie <rohesie@ gmail.com> * Update code/modules/ninja/ninja_explosive.dm Co-authored-by: Rohesie <rohesie@ gmail.com> * Update code/modules/ninja/suit/ninja_equipment_actions/energy_net_nets.dm Co-authored-by: Rohesie <rohesie@ gmail.com> * Remove Unnecessary Condition Checks * I'll show you what A stands for! * Turn some things into defines * Remove is_ninja() * Gives the SN roles on Antag Gain, not on event spawn * Clean up mind/key code to be efficient and modern * Have Deactivated Suit Gloves use default black sprite * Add the new clothing sprites * Add new inventory sprites for alternate sprites * Get Rid of These Again * Re-add suit changes * Implement all the suggestions for the antag file * And then everything else * Updating the Weight for purpose of testmerge * Balance Updates * Update the Objective Definitions * Remove Now Unreachable Cyborg Interaction Code * Get That Shit Out of My Forest * Re-Add Cowl Wearing Sprite * Re-Add Cowl Inventory Sprite * Adapt to the new thing?.thing changes * Re-add New Katana Inhand Sprites * Re-Add glove's shock but have it do knockdown instead * Get rid of the these stupid changelog changes * Update sounds * Re-add New Mask Sprite * Re-update katana inventory sprite * Revert Event Weight * Update code/modules/ninja/suit/ninja_equipment_actions/energy_net_nets.dm Co-authored-by: girl <11748095+ExcessiveUseOfCobblestone@ users.noreply.github.com> * Re-Add Dynamic Ninja * Revert Changelog thing * Update Mob Sprites * Add files via upload Co-authored-by: Changelogs <action@ github.com> Co-authored-by: Fikou <piotrbryla@ onet.pl> Co-authored-by: Rohesie <rohesie@ gmail.com> Co-authored-by: girl <11748095+ExcessiveUseOfCobblestone@ users.noreply.github.com> * [READY] Space Ninja Rework Co-authored-by: IndieanaJones <47086570+IndieanaJones@users.noreply.github.com> Co-authored-by: Changelogs <action@ github.com> Co-authored-by: Fikou <piotrbryla@ onet.pl> Co-authored-by: Rohesie <rohesie@ gmail.com> Co-authored-by: girl <11748095+ExcessiveUseOfCobblestone@ users.noreply.github.com>
38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
/**
|
|
* # Spider Charge
|
|
*
|
|
* A unique version of c4 possessed only by the space ninja. Has a stronger blast radius.
|
|
* Can only be detonated by space ninjas with the bombing objective. Can only be set up where the objective says it can.
|
|
* When it primes, the space ninja responsible will have their objective set to complete.
|
|
*
|
|
*/
|
|
/obj/item/grenade/c4/ninja
|
|
name = "spider charge"
|
|
desc = "A modified C-4 charge supplied to you by the Spider Clan. Its explosive power has been juiced up, but only works in one specific area."
|
|
boom_sizes = list(4, 8, 12)
|
|
var/mob/detonator = null
|
|
|
|
/obj/item/grenade/c4/ninja/afterattack(atom/movable/AM, mob/user, flag)
|
|
var/datum/antagonist/ninja/ninja_antag = user.mind.has_antag_datum(/datum/antagonist/ninja)
|
|
if(!ninja_antag)
|
|
to_chat(user, "<span class='notice'>While it appears normal, you can't seem to detonate the charge.</span>")
|
|
return
|
|
var/datum/objective/plant_explosive/objective = locate() in ninja_antag.objectives
|
|
if(!objective)
|
|
to_chat(user, "<span class='notice'>You can't seem to activate the charge. It's location-locked, but you don't know where to detonate it.</span>")
|
|
return
|
|
if(objective.detonation_location != get_area(user))
|
|
to_chat(user, "<span class='notice'>This isn't the location you're supposed to use this!</span>")
|
|
return
|
|
detonator = user
|
|
return ..()
|
|
|
|
/obj/item/grenade/c4/ninja/prime(mob/living/lanced_by)
|
|
. = ..()
|
|
//Since we already did the checks in afterattack, the denonator must be a ninja with the bomb objective.
|
|
if(!detonator)
|
|
return
|
|
var/datum/antagonist/ninja/ninja_antag = detonator.mind.has_antag_datum(/datum/antagonist/ninja)
|
|
var/datum/objective/plant_explosive/objective = locate() in ninja_antag.objectives
|
|
objective.completed = TRUE
|