mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-20 20:54:35 +01:00
[MIRROR] Begin clickcode attack_self fix (#12173)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
063cf6cf48
commit
3cac28f9ad
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user