Skip to content

Commit

Permalink
[MIRROR] Quirks, which give items, now have quirk_item arg specified …
Browse files Browse the repository at this point in the history
…as obj/item, instead of being just a var (#2035)

* Quirks, which give items, now have quirk_item arg specified as obj/item, instead of being just a var (#82650)

## About The Pull Request
quirk_item is now /obj/item, since it will allow for calling procs or
getting variables from this item

It's required for non-modular translation to call for item's name to
remove articles

## Why It's Good For The Game
It's always an item, and if it's a path, it's already checked for it.
Better usage in the future.

* Quirks, which give items, now have quirk_item arg specified as obj/item, instead of being just a var

---------

Co-authored-by: larentoun <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Apr 18, 2024
1 parent 108a4cd commit 7cbd057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/quirks/_quirk.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
* * default_location - If the item isn't possible to equip in a valid slot, this is a description of where the item was spawned.
* * notify_player - If TRUE, adds strings to where_items_spawned list to be output to the player in [/datum/quirk/item_quirk/post_add()]
*/
/datum/quirk/item_quirk/proc/give_item_to_holder(quirk_item, list/valid_slots, flavour_text = null, default_location = "at your feet", notify_player = TRUE)
/datum/quirk/item_quirk/proc/give_item_to_holder(obj/item/quirk_item, list/valid_slots, flavour_text = null, default_location = "at your feet", notify_player = TRUE)
if(ispath(quirk_item))
quirk_item = new quirk_item(get_turf(quirk_holder))

Expand Down

0 comments on commit 7cbd057

Please sign in to comment.