mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 04:01:41 +00:00
* 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>
16 lines
569 B
Plaintext
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)
|