Skip to content

Commit

Permalink
Makes the checks used by bibles better (tgstation#22171)
Browse files Browse the repository at this point in the history
* makes these checks more flexable

* oh hai mark

* praise jesus

* magicaly a better understanding of how to structure if checks lets me cut 2 lines

* wew

* spellcheck

* i shoudent code drunk

* weeeeew

* llllllaaaaaadddddd

* madcusbad

* i realy should learn desktop git

* wew

* Im just so sorry

* because we can't be having the power of atheism melting clockcult.
  • Loading branch information
Supermichael777 authored and optimumtact committed Dec 18, 2016
1 parent d0ad011 commit 64ab376
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
3 changes: 2 additions & 1 deletion code/datums/mind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
var/datum/devilinfo/devilinfo //Information about the devil, if any.
var/damnation_type = 0
var/datum/mind/soulOwner //who owns the soul. Under normal circumstances, this will point to src

var/isholy = FALSE //is this person a chaplain or admin role allowed to use bibles

var/mob/living/enslaved_to //If this mind's master is another mob (i.e. adamantine golems)

/datum/mind/New(var/key)
Expand Down
10 changes: 8 additions & 2 deletions code/game/gamemodes/clock_cult/clock_items/clock_components.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@

/obj/item/clockwork/component/pickup(mob/living/user)
..()
if(iscultist(user) || (user.mind && user.mind.assigned_role == "Chaplain"))
if(iscultist(user) || (user.mind && user.mind.isholy))
user << "<span class='[message_span]'>[cultist_message]</span>"
if(user.mind && user.mind.isholy)
user << "<span class='boldannounce'>The power of your faith melts away the [src]!</span>"
var/obj/item/weapon/ore/slag/wrath = new /obj/item/weapon/ore/slag
user.unEquip(src)
user.put_in_active_hand(wrath)
qdel(src)
if(is_servant_of_ratvar(user) && prob(20))
var/pickedmessage = pick(servant_of_ratvar_messages)
user << "<span class='[message_span]'>[servant_of_ratvar_messages[pickedmessage] ? "[text2ratvar(pickedmessage)]" : pickedmessage]</span>"
Expand Down Expand Up @@ -191,4 +197,4 @@
/obj/item/clockwork/alloy_shards/small
randomsinglesprite = TRUE
randomspritemax = 3
icon_state = "shard_small"
icon_state = "shard_small"
12 changes: 5 additions & 7 deletions code/game/objects/items/weapons/holy_weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/obj/item/weapon/nullrod/attack_self(mob/user)
if(reskinned)
return
if(user.mind && (user.mind.assigned_role == "Chaplain"))
if(user.mind && (user.mind.isholy))
reskin_holy_weapon(user)

/obj/item/weapon/nullrod/proc/reskin_holy_weapon(mob/M)
Expand Down Expand Up @@ -322,12 +322,10 @@

/obj/item/weapon/nullrod/carp/attack_self(mob/living/user)
if(used_blessing)
return
if(user.mind && (user.mind.assigned_role != "Chaplain"))
return
user << "You are blessed by Carp-Sie. Wild space carp will no longer attack you."
user.faction |= "carp"
used_blessing = TRUE
else if(user.mind && (user.mind.isholy))
user << "You are blessed by Carp-Sie. Wild space carp will no longer attack you."
user.faction |= "carp"
used_blessing = TRUE

/obj/item/weapon/nullrod/claymore/bostaff //May as well make it a "claymore" and inherit the blocking
name = "monk's staff"
Expand Down
6 changes: 3 additions & 3 deletions code/game/objects/items/weapons/storage/book.dm
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var/global/list/bibleitemstates = list("bible", "koran", "scrapbook", "bible", "
/obj/item/weapon/storage/book/bible/attack(mob/living/M, mob/living/carbon/human/user)

var/chaplain = 0
if(user.mind && (user.mind.assigned_role == "Chaplain"))
if(user.mind && (user.mind.isholy))
chaplain = 1


Expand Down Expand Up @@ -189,10 +189,10 @@ var/global/list/bibleitemstates = list("bible", "koran", "scrapbook", "bible", "
return
if(isfloorturf(A))
user << "<span class='notice'>You hit the floor with the bible.</span>"
if(user.mind && (user.mind.assigned_role == "Chaplain"))
if(user.mind && (user.mind.isholy))
for(var/obj/effect/rune/R in orange(2,user))
R.invisibility = 0
if(user.mind && (user.mind.assigned_role == "Chaplain"))
if(user.mind && (user.mind.isholy))
if(A.reagents && A.reagents.has_reagent("water")) //blesses all the water in the holder
user << "<span class='notice'>You bless [A].</span>"
var/water2holy = A.reagents.get_reagent_amount("water")
Expand Down
3 changes: 2 additions & 1 deletion code/modules/jobs/job_types/civilian_chaplain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Chaplain

if(visualsOnly)
return


H.mind.isholy = TRUE

var/obj/item/weapon/storage/book/bible/B = new /obj/item/weapon/storage/book/bible/booze(H)

Expand Down

0 comments on commit 64ab376

Please sign in to comment.