Files
Bubberstation/code/datums/components/fantasy/prefixes.dm
tralezab 1810b85553 Heretics cannot be converted, and are immune to cult stun hands. Instead, the cult is rewarded for sacrificing them with the bloody bastard sword, an oversized SPIN2WIN funblade. + Soul Stealing Fantasy Affix (#69725)
About The Pull Request

Heretics can no longer be converted to a cult, as they follow their own Forgotten Gods.
Instead, Nar'Sie will reward the cult for managing to sacrifice one, with the bastard sword.
The bloody bastard sword has been cleaned up codewise and all that. Because it is a free reward instead of a (removed) progression mechanic of cult, it swings just a bit slower during the spin and doesn't have a jaunt. It's still a !fun! swinging sword of hilarity and death.
BLOODY BASTARD https://www.youtube.com/watch?v=ukznXQ3MgN0
Fantasy weapons can now roll "soul-stealing" weapons. They, on killing something, capture its soul inside the item.

    Add fail conditions that instantly end a spin2win, ala how 

    Mimes can now hold a baguette like a sword by right clicking it #69592 works

Why It's Good For The Game

Bloody bastard sword was fun, it made no sense that heretics were valid converts when they're already worshipping a DIFFERENT evil god granting them powers. Should be in a good spot as a nice little antag to antag special interaction. I fucking love antag to antag special interactions, we should have more of 'em

Fantasy affixes are always a neat thing to throw a new component into
Changelog

cl
add: Heretics can no longer be converted to cult. But sacrificing them is very valuable to Nar'Sie, and she will grant special weapons if you manage to do so.
add: Fantasy affixes can also include soul-stealing items!
/cl
2022-09-28 10:24:04 +13:00

165 lines
5.1 KiB
Plaintext

/datum/fantasy_affix/cosmetic_prefixes
name = "purely cosmetic prefix"
placement = AFFIX_PREFIX
alignment = AFFIX_GOOD | AFFIX_EVIL
var/list/goodPrefixes
var/list/badPrefixes
/datum/fantasy_affix/cosmetic_prefixes/New()
goodPrefixes = list(
"greater",
"major",
"blessed",
"superior",
"empowered",
"honed",
"true",
"glorious",
"robust",
)
badPrefixes = list(
"lesser",
"minor",
"blighted",
"inferior",
"enfeebled",
"rusted",
"unsteady",
"tragic",
"gimped",
"cursed",
)
weight = (length(goodPrefixes) + length(badPrefixes)) * 10
/datum/fantasy_affix/cosmetic_prefixes/apply(datum/component/fantasy/comp, newName)
if(comp.quality > 0 || (comp.quality == 0 && prob(50)))
return "[pick(goodPrefixes)] [newName]"
else
return "[pick(badPrefixes)] [newName]"
/datum/fantasy_affix/tactical
name = "tactical"
placement = AFFIX_PREFIX
alignment = AFFIX_GOOD
weight = 1 // Very powerful, no one should have such power
/datum/fantasy_affix/tactical/apply(datum/component/fantasy/comp, newName)
var/obj/item/master = comp.parent
comp.appliedComponents += master.AddComponent(/datum/component/tactical)
return "tactical [newName]"
/datum/fantasy_affix/pyromantic
name = "pyromantic"
placement = AFFIX_PREFIX
alignment = AFFIX_GOOD
/datum/fantasy_affix/pyromantic/apply(datum/component/fantasy/comp, newName)
var/obj/item/master = comp.parent
comp.appliedComponents += master.AddComponent(/datum/component/igniter, clamp(comp.quality, 1, 10))
return "pyromantic [newName]"
/datum/fantasy_affix/vampiric
name = "vampiric"
placement = AFFIX_PREFIX
alignment = AFFIX_GOOD
weight = 5
/datum/fantasy_affix/vampiric/validate(obj/item/attached)
return attached.force //don't apply to things that just bap people
/datum/fantasy_affix/vampiric/apply(datum/component/fantasy/comp, newName)
var/obj/item/master = comp.parent
master.AddElement(/datum/element/lifesteal, comp.quality)
return "vampiric [newName]"
/datum/fantasy_affix/vampiric/remove(datum/component/fantasy/comp)
var/obj/item/master = comp.parent
master.RemoveElement(/datum/element/lifesteal, comp.quality)
/datum/fantasy_affix/beautiful
name = "beautiful"
placement = AFFIX_PREFIX
alignment = AFFIX_GOOD
/datum/fantasy_affix/beautiful/apply(datum/component/fantasy/comp, newName)
var/obj/item/master = comp.parent
master.AddElement(/datum/element/beauty, max(comp.quality, 1) * 250)
return "[pick("aesthetic", "beautiful", "gorgeous", "pretty")] [newName]"
/datum/fantasy_affix/beautiful/remove(datum/component/fantasy/comp)
var/obj/item/master = comp.parent
master.RemoveElement(/datum/element/beauty, max(comp.quality, 1) * 250)
/datum/fantasy_affix/ugly
name = "ugly"
placement = AFFIX_PREFIX
alignment = AFFIX_EVIL
/datum/fantasy_affix/ugly/apply(datum/component/fantasy/comp, newName)
var/obj/item/master = comp.parent
master.AddElement(/datum/element/beauty, min(comp.quality, -1) * 250)
return "[pick("fugly", "ugly", "grotesque", "hideous")] [newName]"
/datum/fantasy_affix/ugly/remove(datum/component/fantasy/comp)
var/obj/item/master = comp.parent
master.RemoveElement(/datum/element/beauty, min(comp.quality, -1) * 250)
/datum/fantasy_affix/venomous
name = "<poisonname>-laced (picked from small pool of toxins)"
placement = AFFIX_PREFIX
alignment = AFFIX_GOOD
/datum/fantasy_affix/venomous/validate(obj/item/attached)
return attached.force //don't apply to things that just bap people
/datum/fantasy_affix/venomous/apply(datum/component/fantasy/comp, newName)
var/obj/item/master = comp.parent
var/picked_poison = pick(list(
/datum/reagent/toxin/plantbgone,
/datum/reagent/toxin/mutetoxin,
/datum/reagent/toxin/amanitin,
/datum/reagent/toxin/lipolicide,
/datum/reagent/toxin/spewium,
/datum/reagent/toxin/heparin,
/datum/reagent/toxin/rotatium,
/datum/reagent/toxin/histamine
))
var/list/names = list(
/datum/reagent/toxin/plantbgone = "plantbane",
/datum/reagent/toxin/mutetoxin = "mimemind",
/datum/reagent/toxin/amanitin = "dormant death",
/datum/reagent/toxin/lipolicide = "famineblood",
/datum/reagent/toxin/spewium = "gulchergut",
/datum/reagent/toxin/heparin = "jabberwound",
/datum/reagent/toxin/rotatium = "spindown",
/datum/reagent/toxin/histamine = "creeping malaise"
)
var/poisonname = names[picked_poison]
master.AddElement(/datum/element/venomous, picked_poison, comp.quality+1)
//seriously don't @ me about the correct use of venom vs poison. shut up.
return "[poisonname]-[pick("poisoned", "envenomed", "laced")] [newName]"
/datum/fantasy_affix/venomous/remove(datum/component/fantasy/comp)
var/obj/item/master = comp.parent
master.RemoveElement(/datum/element/venomous)
/datum/fantasy_affix/soul_stealer
name = "soul-stealing"
placement = AFFIX_PREFIX
alignment = AFFIX_GOOD
/datum/fantasy_affix/soul_stealer/validate(obj/item/attached)
if(attached.force)
return FALSE
if(attached.atom_storage)
return FALSE
return TRUE
/datum/fantasy_affix/soul_stealer/apply(datum/component/fantasy/comp, newName)
var/obj/item/master = comp.parent
comp.appliedComponents += master.AddComponent(/datum/component/soul_stealer)
return "soul-[pick("stealing", "hungering", "devouring")] [newName]"