mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Action button refactor/rework: Enhanced Dragging [MDB IGNORE] (#12423)
* Action button refactor/rework: Enhanced Dragging * PHEW Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
co-authored by
LemonInTheDark
Gandalf
parent
2f25875974
commit
cec72761ac
@@ -404,7 +404,7 @@ GLOBAL_LIST_INIT_TYPED(sdql_spells, /obj/effect/proc_holder/spell, list())
|
||||
if("confirm")
|
||||
if(target_spell)
|
||||
reassign_vars(target_spell)
|
||||
target_spell.action.UpdateButtonIcon()
|
||||
target_spell.action.UpdateButtons()
|
||||
log_admin("[key_name(user)] edited the SDQL spell \"[target_spell]\" owned by [key_name(target_mob)].")
|
||||
else
|
||||
var/new_spell = give_spell()
|
||||
@@ -895,7 +895,7 @@ GLOBAL_LIST_INIT_TYPED(sdql_spells, /obj/effect/proc_holder/spell, list())
|
||||
var/obj/effect/proc_holder/spell/new_spell = new path(null, target_mob, user.ckey)
|
||||
GLOB.sdql_spells += new_spell
|
||||
reassign_vars(new_spell)
|
||||
new_spell.action.UpdateButtonIcon()
|
||||
new_spell.action.UpdateButtons()
|
||||
if(target_mob.mind)
|
||||
target_mob.mind.AddSpell(new_spell)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user