Hail Lii'dra (#17925)

* fsad

* uihj
This commit is contained in:
Fluffy
2023-12-13 19:06:40 +00:00
committed by GitHub
parent 04dc739845
commit e27a6f3070
58 changed files with 121 additions and 120 deletions
@@ -1,25 +0,0 @@
// Observer Pattern Implementation: See In Dark Set
// Registration type: /mob
//
// Raised when: A mob's see_in_dark value changes.
//
// Arguments that the called proc should expect:
// /mob/sightee: The mob that had its see_in_dark set
// /old_see_in_dark: see_in_dark before the change
// /new_see_in_dark: see_in_dark after the change
var/singleton/observ/see_in_dark_set/see_in_dark_set_event = new()
/singleton/observ/see_in_dark_set
name = "See In Dark Set"
expected_type = /mob
/***************************
* See In Dark Set Handling *
***************************/
/mob/proc/set_see_in_dark(var/new_see_in_dark)
var/old_see_in_dark = sight
if(old_see_in_dark != new_see_in_dark)
see_in_dark = new_see_in_dark
see_in_dark_set_event.raise_event(src, old_see_in_dark, new_see_in_dark)