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

Necromancer from Blackstone #536

Closed
wants to merge 7 commits into from
Closed
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
4 changes: 3 additions & 1 deletion code/__DEFINES/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define TRAIT_CYCLOPS_RIGHT "Cyclops (Right)" //poked right eye
#define TRAIT_LEECHIMMUNE "Unleechable" //leeches wont attach in bog squares
#define TRAIT_ASSASSIN "Assassin Training" //used for the assassin drifter's unique mechanics.
#define TRAIT_NECROMANCER "Necromancer Magic" // please work

#define TRAIT_MISSING_NOSE "Missing Nose" //halved stamina regeneration
#define TRAIT_DISFIGURED "Disfigured"
Expand Down Expand Up @@ -76,7 +77,8 @@ GLOBAL_LIST_INIT(roguetraits, list(
TRAIT_LEECHIMMUNE = "Leeches are reluctant to bite me.",
TRAIT_ASSASSIN = "My soul has been tainted by the god of murder.",
TRAIT_RETARD_ANATOMY = "My anatomy is inhumen, preventing me from wearing hats and shoes.",
TRAIT_MALUMFIRE = "My hands are blessed by Malum to forge items of superb quality."
TRAIT_MALUMFIRE = "My hands are blessed by Malum to forge items of superb quality.",
TRAIT_NECROMANCER = "I have stared into the abyss, and the abyss stared back."
))

// trait accessor defines
Expand Down
32 changes: 32 additions & 0 deletions code/modules/antagonists/roguetown/villain/necromancer.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/datum/antagonist/necromancer
name = "Necromancer"
roundend_category = "Necromancer"
antagpanel_category = "Necromancer"
antag_hud_type = ANTAG_HUD_TRAITOR
antag_hud_name = "Necromancer"
show_name_in_check_antagonists = TRUE
confess_lines = list(
"PRAISE BE TO THE UNDYING!",
"PRAISE ZIZO!",
"DEATH CANNOT HOLD ME!",
"I WILL CONSUME YOUR SOUL!",
)

/datum/antagonist/necromancer/on_gain()
owner.current.cmode_music = 'sound/music/combat_necromancer.ogg'


/datum/antagonist/necromancer/roundend_report()
var/traitorwin = FALSE

if(!considered_alive(owner))
traitorwin = FALSE

if(traitorwin)
to_chat(world, "<span class='greentext'>The [name] [owner.name] has TRIUMPHED!</span>")
if(owner?.current)
owner.current.playsound_local(get_turf(owner.current), 'sound/misc/triumph.ogg', 100, FALSE, pressure_affected = FALSE)
else
to_chat(world, "<span class='redtext'>The [name] [owner.name] has FAILED!</span>")
if(owner?.current)
owner.current.playsound_local(get_turf(owner.current), 'sound/misc/fail.ogg', 100, FALSE, pressure_affected = FALSE)
4 changes: 4 additions & 0 deletions code/modules/jobs/job_types/roguetown/adventurer/DRIFTERZ.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@
if(HAS_TRAIT(H, TRAIT_ASSASSIN)) // If the mob is an assassin, they will be given the assassin antag.
var/datum/antagonist/new_antag = new /datum/antagonist/assassin()
H.mind.add_antag_datum(new_antag)
if(!H.mind)
if(HAS_TRAIT(H, TRAIT_NECROMANCER)) // if the mob is a necromancer, they will be given the necromancer antag (i want to enact pain on this antag)
var/datum/antagonist/new_antag = new /datum/antagonist/necromancer()
H.mind.add_antag_datum(new_antag)

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/datum/advclass/necromancer
name = "Necromancer"
tutorial = "Ostracized and hunted by society for their dark magics and perversion of life, Necromancers have been known to summon ghosts, ghouls, and zombies; you cannot."
allowed_sexes = list(MALE, FEMALE)
allowed_races = list(
"Humen",
"Elf",
"Half-Elf",
"Tiefling",
"Dark Elf",
)
outfit = /datum/outfit/job/roguetown/adventurer/necromancer
category_tags = list(CTAG_ADVENTURER)
maximum_possible_slots = 1
pickprob = 100
allowed_patrons = list(/datum/patron/inhumen/zizo)

/datum/outfit/job/roguetown/adventurer/necromancer/pre_equip(mob/living/carbon/human/H)
..()
head = /obj/item/clothing/head/roguetown/roguehood/mage
shoes = /obj/item/clothing/shoes/roguetown/simpleshoes
armor = /obj/item/clothing/suit/roguetown/shirt/robe/mage
belt = /obj/item/storage/belt/rogue/leather/rope
backr = /obj/item/storage/backpack/rogue/satchel
beltl = /obj/item/reagent_containers/glass/bottle/rogue/manapot
r_hand = /obj/item/rogueweapon/woodstaff

H.mind.adjust_skillrank(/datum/skill/misc/reading, 4, TRUE)
H.mind.adjust_skillrank(/datum/skill/magic/arcane, 5, TRUE)
H.mind.adjust_skillrank(/datum/skill/craft/carpentry, 2, TRUE)
H.mind.adjust_skillrank(/datum/skill/craft/crafting, 2, TRUE)
H.change_stat("strength", -1)
H.change_stat("intelligence", 3)
H.change_stat("constitution", -2)
H.change_stat("endurance", -1)
H.change_stat("speed", -1)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/invoked/bonechill)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/invoked/raise_undead)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/invoked/projectile/sickness)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/invoked/eyebite)
ADD_TRAIT(H, TRAIT_NECROMANCER, TRAIT_GENERIC)
ADD_TRAIT(H, TRAIT_ZOMBIE_IMMUNE, TRAIT_GENERIC)
ADD_TRAIT(H, TRAIT_NOSTINK, TRAIT_GENERIC)
ADD_TRAIT(H, TRAIT_VILLAIN, TRAIT_GENERIC)
ADD_TRAIT(H, TRAIT_STEELHEARTED, TRAIT_GENERIC)
H.faction |= "undead"
3 changes: 3 additions & 0 deletions code/modules/jobs/job_types/roguetown/church/inquisitor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
if("Science")
held_confession.bad_type = "A DAMNED ANTI-THEIST"
held_confession.antag = "worshiper of nothing"
if("Necromancer")
held_confession.bad_type = "A PROFANED SOUL"
held_confession.antag = antag_type
held_confession.info = "THE GUILTY PARTY ADMITS THEIR SINFUL NATURE AS <font color='red'>[held_confession.bad_type]</font>. THEY WILL SERVE ANY PUNISHMENT OR SERVICE AS REQUIRED BY THE ORDER OF THE PSYCROSS UNDER PENALTY OF DEATH.<br/><br/>SIGNED,<br/><font color='red'><i>[held_confession.signed]</i></font>"
held_confession.update_icon_state()
return
Expand Down
14 changes: 14 additions & 0 deletions code/modules/projectiles/projectile/magic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,20 @@
var/obj/item/I = target
I.throw_at(throw_target, 200, 4)

/obj/projectile/magic/sickness
name = "Bolt of Sickness"
icon_state = "xray"
damage = 10
damage_type = BURN
flag = "magic"
range = 15

/obj/projectile/magic/sickness/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
M.reagents.add_reagent(/datum/reagent/toxin, 3)

/obj/projectile/magic/sapping
name = "bolt of sapping"
icon_state = "sapping"
Expand Down
105 changes: 105 additions & 0 deletions code/modules/spells/roguetown/necromancer.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/obj/effect/proc_holder/spell/invoked/bonechill
name = "Bone Chill"
overlay_state = "raiseskele"
releasedrain = 30
chargetime = 5
range = 7
warnie = "sydwarning"
movement_interrupt = FALSE
chargedloop = null
sound = 'sound/magic/whiteflame.ogg'
associated_skill = /datum/skill/magic/arcane
antimagic_allowed = TRUE
charge_max = 15 SECONDS
miracle = FALSE

/obj/effect/proc_holder/spell/invoked/bonechill/cast(list/targets, mob/living/user)
. = ..()
if(isliving(targets[1]))
var/mob/living/target = targets[1]
if(target.mob_biotypes & MOB_UNDEAD) //positive energy harms the undead
var/obj/item/bodypart/affecting = target.get_bodypart(check_zone(user.zone_selected))
if(affecting)
if(affecting.heal_damage(50, 50))
target.update_damage_overlays()
if(affecting.heal_wounds(50))
target.update_damage_overlays()
target.visible_message(span_danger("[target] reforms under the vile energy!"), span_notice("I'm remade by dark magic!"))
return TRUE
target.visible_message(span_info("Necrotic energy floods over [target]!"), span_userdanger("I feel colder as the dark energy floods into me!"))
if(iscarbon(target))
target.Paralyze(25)
else
target.adjustBruteLoss(20)
return TRUE
return FALSE

/obj/effect/proc_holder/spell/invoked/eyebite
name = "Eyebite"
overlay_state = "raiseskele"
releasedrain = 30
chargetime = 15
range = 7
warnie = "sydwarning"
movement_interrupt = FALSE
chargedloop = null
req_items = list(/obj/item/clothing/suit/roguetown/shirt/robe/mage)
sound = 'sound/items/beartrap.ogg'
associated_skill = /datum/skill/magic/arcane
antimagic_allowed = TRUE
charge_max = 15 SECONDS
miracle = FALSE

/obj/effect/proc_holder/spell/invoked/eyebite/cast(list/targets, mob/living/user)
. = ..()
if(isliving(targets[1]))
var/mob/living/carbon/target = targets[1]
target.visible_message(span_info("A loud crunching sound has come from [target]!"), span_userdanger("I feel arcane teeth biting into my eyes!"))
target.adjustBruteLoss(30)
target.blind_eyes(2)
target.blur_eyes(10)
return TRUE
return FALSE

/obj/effect/proc_holder/spell/invoked/raise_undead
name = "Raise Undead"
desc = ""
clothes_req = FALSE
range = 7
overlay_state = "raiseskele"
sound = list('sound/magic/magnet.ogg')
releasedrain = 40
chargetime = 60
warnie = "spellwarning"
no_early_release = TRUE
charging_slowdown = 1
chargedloop = /datum/looping_sound/invokegen
associated_skill = /datum/skill/magic/arcane
charge_max = 60 SECONDS

/obj/effect/proc_holder/spell/invoked/raise_undead/cast(list/targets, mob/living/user)
. = ..()
var/turf/T = get_turf(targets[1])
if(isopenturf(T))
new /mob/living/carbon/human/species/skeleton/npc/peasant/(T)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it eventually die or is it permanent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

permanent, its a simplemob.

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 mean, if you beat it to death, it'll be dead, if that's what you're asking. but no, there's no timer that annihilates it from existence after a set period of time.

return TRUE
to_chat(user, span_warning("The targeted location is blocked. My summon fails to come forth."))
return FALSE

/obj/effect/proc_holder/spell/invoked/projectile/sickness
name = "Ray of Sickness"
desc = ""
clothes_req = FALSE
range = 15
projectile_type = /obj/projectile/magic/sickness
overlay_state = "raiseskele"
sound = list('sound/misc/portal_enter.ogg')
active = FALSE
releasedrain = 30
chargetime = 10
warnie = "spellwarning"
no_early_release = TRUE
charging_slowdown = 1
chargedloop = /datum/looping_sound/invokegen
associated_skill = /datum/skill/magic/arcane
charge_max = 15 SECONDS
Binary file added sound/music/combat_necromancer.ogg
Binary file not shown.
3 changes: 3 additions & 0 deletions stonekeep.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,7 @@
#include "code\modules\antagonists\roguetown\villain\bandit.dm"
#include "code\modules\antagonists\roguetown\villain\choosename.dm"
#include "code\modules\antagonists\roguetown\villain\maniac.dm"
#include "code\modules\antagonists\roguetown\villain\necromancer.dm"
#include "code\modules\antagonists\roguetown\villain\peasantrebel.dm"
#include "code\modules\antagonists\roguetown\villain\vampire.dm"
#include "code\modules\antagonists\roguetown\villain\vampirelord.dm"
Expand Down Expand Up @@ -2158,6 +2159,7 @@
#include "code\modules\jobs\job_types\roguetown\adventurer\types\combat\rare\freelancer.dm"
#include "code\modules\jobs\job_types\roguetown\adventurer\types\combat\rare\heartfelt.dm"
#include "code\modules\jobs\job_types\roguetown\adventurer\types\combat\rare\heartfelthand.dm"
#include "code\modules\jobs\job_types\roguetown\adventurer\types\combat\rare\necromancer.dm"
#include "code\modules\jobs\job_types\roguetown\adventurer\types\combat\rare\sentinel.dm"
#include "code\modules\jobs\job_types\roguetown\adventurer\types\combat\rare\treasurehunter.dm"
#include "code\modules\jobs\job_types\roguetown\adventurer\types\combat\rare\witchhunter.dm"
Expand Down Expand Up @@ -3242,6 +3244,7 @@
#include "code\modules\spells\roguetown\confessor.dm"
#include "code\modules\spells\roguetown\jester.dm"
#include "code\modules\spells\roguetown\monk.dm"
#include "code\modules\spells\roguetown\necromancer.dm"
#include "code\modules\spells\roguetown\priest.dm"
#include "code\modules\spells\roguetown\spider.dm"
#include "code\modules\spells\roguetown\wizard.dm"
Expand Down
Loading