mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 17:11:22 +00:00
* sdfaf * ssdasd * dfsd * try to apply a linter to spot violations of editorconfig * sfdas * asf * sadfas * sfasf * asfsda * sdaf * sfsad * totally not for testing * aaaaaaaaaaaaaaa * asfsadf * saf * sdfaf
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
// Observer Pattern Implementation: Equipped
|
|
// Registration type: /mob
|
|
//
|
|
// Raised when: A mob equips an item.
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /mob/equipper: The mob that equipped the item.
|
|
// /obj/item/item: The equipped item.
|
|
// slot: The slot equipped to.
|
|
|
|
var/singleton/observ/mob_equipped/mob_equipped_event = new()
|
|
|
|
/singleton/observ/mob_equipped
|
|
name = "Mob Equipped"
|
|
expected_type = /mob
|
|
|
|
// Observer Pattern Implementation: Equipped
|
|
// Registration type: /obj/item
|
|
//
|
|
// Raised when: A mob equips an item.
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /obj/item/item: The equipped item.
|
|
// /mob/equipper: The mob that equipped the item.
|
|
// slot: The slot equipped to.
|
|
|
|
var/singleton/observ/item_equipped/item_equipped_event = new()
|
|
|
|
/singleton/observ/item_equipped
|
|
name = "Item Equipped"
|
|
expected_type = /obj/item
|
|
|
|
/********************
|
|
* Equipped Handling *
|
|
********************/
|
|
|
|
/obj/item/proc/check_equipped(var/mob/user, var/slot, var/assisted_equip = FALSE)
|
|
return TRUE
|