Skip to content

Commit

Permalink
mod wizard_spells
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemchik542 committed Jul 21, 2024
1 parent 11abe81 commit b395b9f
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 27 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/// Слабый Scream for me, ломает ноги, заставляет людей выкрикивать фразы, а ещё имеет прикольный звук применения.
/datum/action/cooldown/spell/touch/testicular_torsion
name = "Testicular Torsion"
desc = "This wicked spell twistes and crushes victim's balls \
causing them to feel immense pain, may also break their legs."
button_icon = 'massmeta/icons/mob/actions/actions_spells.dmi'
button_icon = 'massmeta/features/wizard_spells/icons/actions_spells.dmi'
button_icon_state = "torsion"
sound = 'massmeta/features/smites/sound/testicular_torsion.ogg'
sound = "massmeta/features/wizard_spells/sound/testicular_torsion.ogg"

school = SCHOOL_SANGUINE
invocation_type = INVOCATION_SHOUT
Expand All @@ -26,16 +25,14 @@

/datum/action/cooldown/spell/touch/testicular_torsion/cast_on_hand_hit(obj/item/melee/touch_attack/hand, mob/living/victim, mob/living/carbon/caster)
if(!ishuman(victim))
to_chat(caster, span_warning("Must be a human!"))
return FALSE
return
var/mob/living/carbon/human/human_victim = victim
human_victim.apply_damage(rand(20, 30), BRUTE, BODY_ZONE_L_LEG, wound_bonus = CANT_WOUND)
human_victim.apply_damage(rand(20, 30), BRUTE, BODY_ZONE_R_LEG, wound_bonus = CANT_WOUND)
human_victim.cause_wound_of_type_and_severity(WOUND_BLUNT, human_victim.get_bodypart(BODY_ZONE_L_LEG), WOUND_SEVERITY_TRIVIAL, WOUND_SEVERITY_MODERATE)
human_victim.cause_wound_of_type_and_severity(WOUND_BLUNT, human_victim.get_bodypart(BODY_ZONE_R_LEG), WOUND_SEVERITY_TRIVIAL, WOUND_SEVERITY_MODERATE)
var/list/phrase = world.file2list("massmeta/features/smites/string/balls_phrases.txt")
human_victim.say(pick(phrase))
human_victim.emote("screech")
human_victim.apply_damage(rand(40, 55), BRUTE, BODY_ZONE_L_LEG, wound_bonus = rand(45, 75), forced = TRUE)
human_victim.apply_damage(rand(40, 55), BRUTE, BODY_ZONE_R_LEG, wound_bonus = rand(45, 75), forced = TRUE)
var/list/phrase = world.file2list("massmeta/strings/testicular_torsion_phrases.txt")
if(human_victim.stat != DEAD) // no ghosts speak
human_victim.say(pick(phrase))
human_victim.emote("screech")
return TRUE

/obj/item/melee/touch_attack/testicular_torsion
Expand Down
8 changes: 8 additions & 0 deletions massmeta/features/wizard_spells/code/spellbook_offensive.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Offensive wizard spell

/datum/spellbook_entry/testicular_torsion
name = "Testicular Torsion"
desc = "A dark spell capable of exploding victim's balls."
spell_type = /datum/action/cooldown/spell/touch/testicular_torsion
cost = 1
category = "Offensive"
Binary file not shown.
2 changes: 2 additions & 0 deletions massmeta/features/wizard_spells/includes.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "code\spell_testicular_torsion.dm"
#include "code\spellbook_offensive.dm"
29 changes: 29 additions & 0 deletions massmeta/features/wizard_spells/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Module ID: wizard_spells

### Description:

Слабый "Scream for me", но зато ломает ноги и заставляет людей выкрикивать фразы под прикольный звук применения.

### TG Proc/File Changes:

- N/A


### Modular Overrides:

- N/A


### Defines:

- N/A


### TGUI Files:

- N/A


### Credits:

- Bruh-24
Binary file not shown.
Binary file removed massmeta/icons/mob/actions/actions_spells.dmi
Binary file not shown.
Binary file removed massmeta/icons/mob/actions/actions_vehicle.dmi
Binary file not shown.
5 changes: 1 addition & 4 deletions massmeta/modular_meta_features.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "features\quirk_augmented\includes.dm"
#include "features\smites\includes.dm"
#include "features\soviet_crate\includes.dm"
#include "features\wizard_spells\includes.dm"
// END_INCLUDE


Expand Down Expand Up @@ -79,7 +80,3 @@
//buts
#include "code\modules\surgery\organs\internal\butts\butts.dm"
#include "code\modules\surgery\organs\internal\butts\butts_init.dm"

//Testicular_torsion wizard
#include "code\modules\spells\spell_types\touch\testicular_torsion.dm"
#include "code\modules\antags\wizard\equipment\spellbook_entries\offensive.dm"

0 comments on commit b395b9f

Please sign in to comment.