mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Bane refactor (now uses damage multipliers) (#96003)
This commit is contained in:
@@ -58,7 +58,6 @@
|
||||
name = "of <mobtype> slaying (random species, carbon or simple animal)"
|
||||
placement = AFFIX_SUFFIX
|
||||
alignment = AFFIX_GOOD
|
||||
var/list/target_types_by_comp = list()
|
||||
|
||||
/datum/fantasy_affix/bane/apply(datum/component/fantasy/comp, newName)
|
||||
. = ..()
|
||||
@@ -83,16 +82,9 @@
|
||||
// This works even with the species picks since we're only accessing the name
|
||||
|
||||
var/obj/item/master = comp.parent
|
||||
master.AddElement(/datum/element/bane, target_type = picked_mobtype)
|
||||
target_types_by_comp[comp] = picked_mobtype
|
||||
comp.appliedComponents += master.AddComponent(/datum/component/bane, affected_biotypes = picked_mobtype, damage_multiplier = 2)
|
||||
return "[newName] of [initial(picked_mobtype.name)] slaying"
|
||||
|
||||
/datum/fantasy_affix/bane/remove(datum/component/fantasy/comp)
|
||||
var/picked_mobtype = target_types_by_comp[comp]
|
||||
var/obj/item/master = comp.parent
|
||||
master.RemoveElement(/datum/element/bane, picked_mobtype)
|
||||
target_types_by_comp -= comp
|
||||
|
||||
/datum/fantasy_affix/summoning
|
||||
name = "of <mobtype> summoning (dangerous, can pick all but megafauna tier stuff)"
|
||||
placement = AFFIX_SUFFIX
|
||||
|
||||
Reference in New Issue
Block a user