Skip to content

Commit

Permalink
Merge pull request Blackstone-SS13#119 from ariaworld/paladin-fix2
Browse files Browse the repository at this point in the history
Lets Paladins be able to pick patrons again, tweak Templar minimum PQ to match new PQ-requirement update.
  • Loading branch information
emoats18 authored Apr 16, 2024
2 parents cdff83e + a17fbb9 commit 3eaca8c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,37 @@

/datum/outfit/job/roguetown/adventurer/paladin/pre_equip(mob/living/carbon/human/H)
..()
wrists = /obj/item/clothing/neck/roguetown/psicross/astrata

var/allowed_patrons = list("Astrata", "Dendor", "Necra")

var/datum/patrongods/ourpatron
if(istype(H.PATRON, /datum/patrongods))
ourpatron = H.PATRON

if(!ourpatron || !(ourpatron.name in allowed_patrons))

var/list/datum/patrongods/possiblegods = list()
for(var/datum/patrongods/P in GLOB.patronlist)
if(P.name in allowed_patrons)
possiblegods |= P

ourpatron = pick(possiblegods)
H.PATRON = ourpatron
to_chat(H, "<span class='warning'> My patron had not endorsed my practices in my younger years. I've since grown acustomed to [H.PATRON].")

switch(ourpatron.name)
if("Astrata")
neck = /obj/item/clothing/neck/roguetown/psicross/astrata
if("Dendor")
neck = /obj/item/clothing/neck/roguetown/psicross/dendor
if("Necra")
neck = /obj/item/clothing/neck/roguetown/psicross/necra

armor = /obj/item/clothing/suit/roguetown/armor/chainmail/hauberk
pants = /obj/item/clothing/under/roguetown/chainlegs
shoes = /obj/item/clothing/shoes/roguetown/boots/leather
belt = /obj/item/storage/belt/rogue/leather/hand
beltl = /obj/item/storage/belt/rogue/pouch/coins/mid
beltl = /obj/item/storage/belt/rogue/pouch/coins/poor
id = /obj/item/clothing/ring/silver
cloak = /obj/item/clothing/cloak/tabard/crusader
if(H.mind)
Expand All @@ -37,15 +62,15 @@
H.change_stat("constitution", 2)
H.change_stat("endurance", 3)
H.change_stat("speed", -2)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/invoked/heal/lesser)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/burialrite)
ADD_TRAIT(H, RTRAIT_HEAVYARMOR, TRAIT_GENERIC)
if(H.dna?.species)
if(H.dna.species.id == "human")
H.dna.species.soundpack_m = new /datum/voicepack/male/knight()
if(H.dna.species.id == "tiefling")
cloak = /obj/item/clothing/cloak/tabard/crusader/tief
var/datum/devotion/cleric_holder/C = new /datum/devotion/cleric_holder(H, H.PATRON)
//Paladins start with more devotion, to cast spells, but can't pray to unlock more abilities
C.update_devotion(80)
C.holder_mob = H
C.grant_spells(H)
H.verbs += list(/mob/living/carbon/human/proc/devotionreport)
7 changes: 4 additions & 3 deletions code/modules/jobs/job_types/roguetown/church/templar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Tiefling",
"Aasimar")
outfit = /datum/outfit/job/roguetown/templar
min_pq = 5
min_pq = 2
total_positions = 2
spawn_positions = 2
spells = list(/obj/effect/proc_holder/spell/invoked/heal/lesser, /obj/effect/proc_holder/spell/targeted/churn, /obj/effect/proc_holder/spell/targeted/burialrite)
Expand All @@ -19,7 +19,7 @@

/datum/outfit/job/roguetown/templar/pre_equip(mob/living/carbon/human/H)
..()
wrists = /obj/item/clothing/neck/roguetown/psicross/astrata
neck = /obj/item/clothing/neck/roguetown/psicross/astrata
armor = /obj/item/clothing/suit/roguetown/armor/chainmail/hauberk
pants = /obj/item/clothing/under/roguetown/chainlegs
shoes = /obj/item/clothing/shoes/roguetown/boots/leather
Expand Down Expand Up @@ -53,6 +53,7 @@
if(H.dna.species.id == "tiefling")
cloak = /obj/item/clothing/cloak/tabard/crusader/tief
var/datum/devotion/cleric_holder/C = new /datum/devotion/cleric_holder(H, H.PATRON)
C.update_devotion(80)
//Templars start with more devotion but cannot pray to gain new abilities
C.update_devotion(100)
C.holder_mob = H
H.verbs += list(/mob/living/carbon/human/proc/devotionreport)

0 comments on commit 3eaca8c

Please sign in to comment.