-
Notifications
You must be signed in to change notification settings - Fork 100
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
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
080fe47
Necromancer
Valkrae 5e3faba
fixes
Valkrae 50bf1aa
Merge branch 'main' into necromant
Valkrae 03b9953
fixes 2 - how i learned i was an idiot
Valkrae d824e65
Merge branch 'necromant' of https://github.com/Valkrae/OpenKeep into …
Valkrae 9e94bba
more fixes, because im an idiot
Valkrae 77cf503
ups probability to 100%
Valkrae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
code/modules/jobs/job_types/roguetown/adventurer/types/combat/rare/necromancer.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
permanent, its a simplemob.
There was a problem hiding this comment.
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.