Merge pull request #318 from yogstation13/upstream-merge-36791

[MIRROR] Cult spell buttons will no longer hold an empty slot in the regular action bar
This commit is contained in:
Ling
2018-04-11 13:46:32 +02:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
var/appearance_cache
var/id
var/ordered = TRUE //If the button gets placed into the default bar
/obj/screen/movable/action_button/Click(location,control,params)
var/list/modifiers = params2list(params)
@@ -149,13 +150,14 @@
client.screen += A.button
else
for(var/datum/action/A in actions)
button_number++
A.UpdateButtonIcon()
var/obj/screen/movable/action_button/B = A.button
if(!B.moved)
B.screen_loc = hud_used.ButtonNumberToScreenCoords(button_number)
else
if(B.ordered)
button_number++
if(B.moved)
B.screen_loc = B.moved
else
B.screen_loc = hud_used.ButtonNumberToScreenCoords(button_number)
if(reload_screen)
client.screen += B

View File

@@ -9,6 +9,7 @@
..()
button.screen_loc = "6:-29,4:-2"
button.moved = "6:-29,4:-2"
button.ordered = FALSE
/datum/action/innate/cult/blood_magic/Remove()
for(var/X in spells)
@@ -103,6 +104,7 @@
all_magic = BM
..()
button.locked = TRUE
button.ordered = FALSE
/datum/action/innate/cult/blood_spell/Remove()
if(all_magic)