mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 23:31:04 +00:00
Fixes more compile errors. Down to 65 now. updates << into to_chat Down to 60 errors, also starts to port the codex gigas and law 666 for cyborg devils. Fixes more compile errors. Down to 41 now. Replaces timers with spawns, and <<s with to_chats 40 compile errors. Down to 34 compile errors. whoops, actually down to 34 now. Down to 25 compile errors. Down to 15 compile errors, I'llprobably need some help at this point. Woo! Down to 7 compile errors. Ported over devil hud. Number of errors up to 19. WOO! It compiles. It's completely untested, but it compiles. Adds devils to traitor panel Implements iron, silver and salt banes. implements flashing lights bane Selling your soul prevents cloning, and some other methods of revival. Implements harvest bane Merged and sorted icons/obj/bureaucracy.dmi Adds toy codex gigas Fixes compile errors, adds codex gigas sprite. Lots of bug fixes. Contracts work, devil revival is more consistant, etc Adds missing icons for flaming contracts, summon pitchfork, summon wealth, employment cabinet, and sintouch. Converts DEEP LORE explanations from hell to inferno incorporated. Banishes the compile errors. Devils come from hell again. replaces offer drink obligation with a much more lore appropriate devil's fiddle reference Also fixes contract bashing brain damage chance. Undoes some changes I accidentally did to example config files. Fixes up a few remaining bugs. Puts in the codex gigas and employment contract cabinets. -- Lemon - I kinda skipped this one, I'll patch it back in later because map conflicts are suffering incarnate Solves the devil law problem in a REALLY hacky snowflake way. Fixes a few methods in which a hellbound can be revived. Devils respawn with a limited number of appropriate items, instead of COMPLETELY naked upon corpse destruction. Also adds lines to example config. Updates devil laws to be less hacky. Objective to sintouch x mortals now greentexts correctly. Contracts no longer cause brain damage. I didn't realize it was lethal on this codebase. Oops. Splits dust(visual_only) into dust() and dust_animation() procs Fixes some defines. Adds undef statements to improve compile times. Fixes race changes from demonic form changes. Fixes small runtime error. (Which somehow didn't break anything?) Implements lots of small changes/corrections suggested by CrazyLemon64 I still need to test these changes, along with other potential issues he brought up. Fixes harvest bane and power contracts. Also adds a few </span> tag enders. Corrects some edge cases with revival contracts. Fixes compile error. Reverts unneccecary change to item/weapon/reagent_containers Cleans up the code for readability. Prevents cloning of hellbound individuals. Latejoins now properly have employment contracts added to employment cabinets (provided they still exist) Infernal contracts are no longer rendered unreadable by fire and alcohol. All fireproof paper remains readable after being fireballed, not just infernal contracts. (Though infernal contracts are the only fireproof paper atm) Fixes an edge case problem with cloning. Adds is_revivable proc to mind. Removes snowflake code involving preventing soulseller resurrection. Indulges in the sin of sloth, and copies tg's lazy list macros Proc calls that transform the user no longer go to a null target Fixes devil UI, human regression will keep appearance, and adds danceoff Devil's base forms no longer suffocate inside the devil Fixes runtimes, gets stuff working The arch devil can now blast down walls with their pitchfork EXTERMINATE ALL SPIRITS Activates devil clause in voice of god Fawks Mcclood Feature P A R I T Y Fixes devil bugs from testing - Does a death refactor to make sure that diabolical resurrection works - Walls no longer leave girders when blasted by the devil - Getting a new body gives you a rudimentary amount of equipment to work with to get out of maintenance or whereever Does all the icons in a single commit on their own because icon conflicts suck Starting point of extra devil rebalance/fixes Ports devil friends Also oops tramples all over Fethas' corpse PR that's still up I need to take care of that one Styling fixes
54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
/obj/item/book/codex_gigas
|
|
name = "Codex Gigas"
|
|
icon_state ="demonomicon"
|
|
throw_speed = 1
|
|
throw_range = 10
|
|
burn_state = LAVA_PROOF
|
|
author = "Forces beyond your comprehension"
|
|
unique = TRUE
|
|
title = "The codex gigas"
|
|
var/inUse = 0
|
|
|
|
|
|
/obj/item/book/codex_gigas/attack_self(mob/user)
|
|
if(!user.has_vision())
|
|
return
|
|
if(inUse)
|
|
to_chat(user,"<span class='notice'>Someone else is reading it.</span>")
|
|
return
|
|
if(!user.is_literate())
|
|
to_chat(user,"<span class='notice'>You don't know how to read.</span>")
|
|
return
|
|
if(ishuman(user))
|
|
var/mob/living/carbon/human/U = user
|
|
if(U.check_acedia())
|
|
to_chat(user,"<span class='notice'>None of this matters, why are you reading this? You put the [title] down.</span>")
|
|
return
|
|
inUse = 1
|
|
var/devilName = copytext(sanitize(input(user, "What infernal being do you wish to research?", "Codex Gigas", null) as text),1,MAX_MESSAGE_LEN)
|
|
var/speed = 300
|
|
var/correctness = 85
|
|
var/willpower = 95
|
|
if(U.job in list("Librarian")) // the librarian is both faster, and more accurate than normal crew members at research
|
|
speed = 45
|
|
correctness = 100
|
|
willpower = 100
|
|
if(U.job in list("Captain", "Security Officer", "Head of Security", "Detective", "Warden"))
|
|
willpower = 99
|
|
if(U.job in list("Clown")) // WHO GAVE THE CLOWN A DEMONOMICON? BAD THINGS WILL HAPPEN!
|
|
willpower = 25
|
|
correctness -= U.getBrainLoss() *0.5 //Brain damage makes researching hard.
|
|
speed += U.getBrainLoss() * 3
|
|
user.visible_message("[user] opens [title] and begins reading intently.")
|
|
if(do_after(U, speed, 0, U))
|
|
var/usedName = devilName
|
|
if(!prob(correctness))
|
|
usedName += "x"
|
|
var/datum/devilinfo/devil = devilInfo(usedName, 0)
|
|
user << browse("Information on [devilName]<br><br><br>[lawlorify[LORE][devil.ban]]<br>[lawlorify[LORE][devil.bane]]<br>[lawlorify[LORE][devil.obligation]]<br>[lawlorify[LORE][devil.banish]]", "window=book")
|
|
inUse = 0
|
|
sleep(10)
|
|
if(!prob(willpower))
|
|
U.influenceSin()
|
|
onclose(user, "book")
|