[MIRROR] Begin clickcode attack_self fix (#12173)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-12-29 13:51:44 -07:00
committed by GitHub
parent 063cf6cf48
commit 3cac28f9ad
361 changed files with 2676 additions and 998 deletions
+5
View File
@@ -11,6 +11,8 @@
var/static/list/codex_tree_keys = list() // static list linking codexes to the correct codex_tree.
special_handling = TRUE
/obj/item/book/codex/Initialize(mapload)
tree = codex_tree_keys["[root_type]"]
if(!tree)
@@ -19,6 +21,9 @@
. = ..()
/obj/item/book/codex/attack_self(mob/user)
. = ..(user)
if(.)
return TRUE
if(!tree)
tree = codex_tree_keys["[root_type]"]
if(!tree)