mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Replaces HAS_TRAIT_FROM with HAS_TRAIT in engraving checks (#86630)
## About The Pull Request Stumbled upon this by accident. If you add a trait that **should** prevent engraving from a source other than INNATE_TRAIT you'd probably want it to actually work. This doesn't actually do anything at the moment but could save someone a few hours in the future. ## Changelog 🆑 code: Non-innate engraving blockers should work now (none as of now) /🆑 --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -46,11 +46,11 @@
|
||||
if(!tattoo_target)
|
||||
balloon_alert(tattoo_artist, "no limb to tattoo!")
|
||||
return
|
||||
if(HAS_TRAIT_FROM(tattoo_target, TRAIT_NOT_ENGRAVABLE, INNATE_TRAIT))
|
||||
balloon_alert(tattoo_artist, "bodypart cannot be engraved!")
|
||||
if(HAS_TRAIT_FROM(tattoo_target, TRAIT_NOT_ENGRAVABLE, ENGRAVED_TRAIT))
|
||||
balloon_alert(tattoo_artist, "bodypart already tattooed!")
|
||||
return
|
||||
if(HAS_TRAIT_FROM(tattoo_target, TRAIT_NOT_ENGRAVABLE, TRAIT_GENERIC))
|
||||
balloon_alert(tattoo_artist, "bodypart has already been engraved!")
|
||||
if(HAS_TRAIT(tattoo_target, TRAIT_NOT_ENGRAVABLE))
|
||||
balloon_alert(tattoo_artist, "bodypart cannot be tattooed!")
|
||||
return
|
||||
var/datum/memory/memory_to_tattoo = tattoo_artist.mind.select_memory("tattoo")
|
||||
if(!memory_to_tattoo || !tattoo_artist.Adjacent(tattoo_holder) || !tattoo_holder.get_bodypart(selected_zone))
|
||||
|
||||
Reference in New Issue
Block a user