Re-adds room beauty without the negative moodlets (#46848)

* re-add

* epic

* fix

* epic
This commit is contained in:
Qustinnus
2019-10-05 22:47:49 -04:00
committed by moo
parent dd20f0e757
commit 26a95ac867
20 changed files with 152 additions and 3 deletions
+5
View File
@@ -26,6 +26,8 @@ Simple datum which is instanced once per type and is used for every object of sa
var/value_per_unit = 0
///Armor modifiers, multiplies an items normal armor vars by these amounts.
var/armor_modifiers = list("melee" = 1, "bullet" = 1, "laser" = 1, "energy" = 1, "bomb" = 1, "bio" = 1, "rad" = 1, "fire" = 1, "acid" = 1)
///How beautiful is this material per unit?
var/beauty_modifier = 0
///This proc is called when the material is added to an object.
/datum/material/proc/on_applied(atom/source, amount, material_flags)
@@ -38,6 +40,9 @@ Simple datum which is instanced once per type and is used for every object of sa
if(material_flags & MATERIAL_ADD_PREFIX)
source.name = "[name] [source.name]"
if(beauty_modifier)
addtimer(CALLBACK(source, /datum.proc/AddComponent, /datum/component/beauty, beauty_modifier * amount), 0)
if(istype(source, /obj)) //objs
on_applied_obj(source, amount, material_flags)