Updates OpenDream pragma file (#24516)

* hell yeah-coded

* welp im too tired to fix this one

* lets test this

* Revert "lets test this"

* okay, lets test!

* fixes

* okay we good?

* i might be stupid
This commit is contained in:
Contrabang
2024-03-17 07:56:56 -04:00
committed by GitHub
parent 5216a7853f
commit 9b24572ed5
23 changed files with 55 additions and 8 deletions
+4 -1
View File
@@ -182,6 +182,7 @@
law.delete_law(src)
/datum/ai_law/proc/delete_law(datum/ai_laws/laws)
return
/datum/ai_law/zero/delete_law(datum/ai_laws/laws)
laws.clear_zeroth_laws()
@@ -245,6 +246,7 @@
return law.get_state_law(src)
/datum/ai_law/proc/get_state_law(datum/ai_laws/laws)
return
/datum/ai_law/zero/get_state_law(datum/ai_laws/laws)
if(src == laws.zeroth_law)
@@ -271,7 +273,8 @@
/datum/ai_laws/proc/set_state_law(datum/ai_law/law, state)
law.set_state_law(src, state)
/datum/ai_law/proc/set_state_law(datum/ai_law/law, state)
/datum/ai_law/proc/set_state_law(datum/ai_laws/laws, state)
return
/datum/ai_law/zero/set_state_law(datum/ai_laws/laws, state)
if(src == laws.zeroth_law)
@@ -60,9 +60,16 @@
/datum/status_effect/proc/on_apply() //Called whenever the buff is applied; returning FALSE will cause it to autoremove itself.
return TRUE
/datum/status_effect/proc/tick() //Called every tick.
return
/datum/status_effect/proc/on_remove() //Called whenever the buff expires or is removed; do note that at the point this is called, it is out of the owner's status_effects but owner is not yet null
return
/datum/status_effect/proc/on_timeout() // Called specifically whenever the status effect expires.
return
/datum/status_effect/proc/be_replaced() //Called instead of on_remove when a status effect is replaced by itself or when a status effect with on_remove_on_mob_delete = FALSE has its mob deleted
owner.clear_alert(id)
LAZYREMOVE(owner.status_effects, src)
@@ -182,12 +189,16 @@
var/reset_ticks_on_stack = FALSE //resets the current tick timer if a stack is gained
/datum/status_effect/stacking/proc/threshold_cross_effect() //what happens when threshold is crossed
return
/datum/status_effect/stacking/proc/stacks_consumed_effect() //runs if status is deleted due to threshold being crossed
return
/datum/status_effect/stacking/proc/fadeout_effect() //runs if status is deleted due to being under one stack
return
/datum/status_effect/stacking/proc/stack_decay_effect() //runs every time tick() causes stacks to decay
return
/datum/status_effect/stacking/proc/on_threshold_cross()
threshold_cross_effect()
@@ -196,6 +207,7 @@
qdel(src)
/datum/status_effect/stacking/proc/on_threshold_drop()
return
/datum/status_effect/stacking/proc/can_have_status()
return owner.stat != DEAD