Files
Bubberstation/code/datums/components/fantasy/affix.dm
SkyratBot 0eb1f07cf8 [MIRROR] admins can add specific fantasy affixes to items (#5528)
* Add admin tool for adding specific fantasy affixes (#58884)

A new option when using VV on atom movables is to add a custom
fantasy "affixes".

* admins can add specific fantasy affixes to items

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
2021-05-07 22:33:08 +01:00

16 lines
569 B
Plaintext

/datum/fantasy_affix
///only used for admins adding the affix, this is not what players will see.
var/name = "SOMEONE DIDN'T SET AN ADMIN NAME FOR THIS"
var/placement // A bitflag of "slots" this affix takes up, for example pre/suffix
var/alignment
var/weight = 10
// For those occasional affixes which only make sense in certain circumstances
/datum/fantasy_affix/proc/validate(obj/item/attached)
return TRUE
/datum/fantasy_affix/proc/apply(datum/component/fantasy/comp, newName)
return newName
/datum/fantasy_affix/proc/remove(datum/component/fantasy/comp)