Minor changes

This commit is contained in:
Markolie
2014-12-24 13:13:49 +01:00
parent f03bbf8bc6
commit 5bb4a3b1fe
4 changed files with 9 additions and 50 deletions
+4 -10
View File
@@ -517,6 +517,10 @@
hud_used.item_action_list = list()
for(var/obj/item/I in src)
if(istype(I,/obj/item/clothing/under))
var/obj/item/clothing/under/U = I
if(U.hastie)
I = U.hastie
if(I.icon_action_button)
var/obj/screen/item_action/A = new(hud_used)
@@ -546,16 +550,6 @@
A.screen_loc = ui_action_slot4
if(5)
A.screen_loc = ui_action_slot5
if(6)
A.screen_loc = ui_action_slot6
if(7)
A.screen_loc = ui_action_slot7
if(8)
A.screen_loc = ui_action_slot8
if(9)
A.screen_loc = ui_action_slot9
if(10)
A.screen_loc = ui_action_slot10
break //5 slots available, so no more can be added.
num++
src.client.screen += src.hud_used.item_action_list
+3
View File
@@ -22,6 +22,9 @@
return
var/mob/living/carbon/target = targets[1]
if(!target)
return
if(!(target.type in compatible_mobs))
user << "<span class='notice'>It'd be stupid to curse [target] with a horse's head!</span>"
+1
View File
@@ -16,6 +16,7 @@
var/msg_wait = 500 //how long in deciseconds it waits before telling that body doesn't feel right or mind swap robbed of a spell
var/paralysis_amount_caster = 20 //how much the caster is paralysed for after the spell
var/paralysis_amount_victim = 20 //how much the victim is paralysed for after the spell
icon_power_button = "spell_mind"
/*
Urist: I don't feel like figuring out how you store object spells so I'm leaving this for you to do.
+1 -40
View File
@@ -525,43 +525,4 @@
src.hud_used.hotkey_ui_hidden = 0
else
client.screen -= src.hud_used.hotkeybuttons
src.hud_used.hotkey_ui_hidden = 1
/mob/living/carbon/human/update_action_buttons()
var/num = 1
if(!src.hud_used) return
if(!src.client) return
if(!hud_used.hud_shown) //Hud toggled to minimal
return
src.client.screen -= src.hud_used.item_action_list
hud_used.item_action_list = list()
for(var/obj/item/I in src)
if(I.icon_action_button)
var/obj/screen/item_action/A = new(src.hud_used)
A.icon = 'icons/mob/screen1_action.dmi'
A.icon_state = I.icon_action_button
if(I.action_button_name)
A.name = I.action_button_name
else
A.name = "Use [I.name]"
A.owner = I
hud_used.item_action_list += A
switch(num)
if(1)
A.screen_loc = ui_action_slot1
if(2)
A.screen_loc = ui_action_slot2
if(3)
A.screen_loc = ui_action_slot3
if(4)
A.screen_loc = ui_action_slot4
if(5)
A.screen_loc = ui_action_slot5
break //5 slots available, so no more can be added.
num++
src.client.screen += src.hud_used.item_action_list
src.hud_used.hotkey_ui_hidden = 1