Merge remote-tracking branch 'citadel/master' into mobility_flags
This commit is contained in:
@@ -44,9 +44,13 @@
|
||||
item_state = "balloon-empty"
|
||||
|
||||
|
||||
/obj/item/toy/balloon/New()
|
||||
/obj/item/toy/balloon/Initialize()
|
||||
. = ..()
|
||||
create_reagents(10)
|
||||
..()
|
||||
|
||||
/obj/item/toy/balloon/ComponentInitialize()
|
||||
. = ..()
|
||||
AddElement(/datum/element/update_icon_updates_onmob)
|
||||
|
||||
/obj/item/toy/balloon/attack(mob/living/carbon/human/M, mob/user)
|
||||
return
|
||||
@@ -102,7 +106,7 @@
|
||||
icon_state = "burst"
|
||||
qdel(src)
|
||||
|
||||
/obj/item/toy/balloon/update_icon()
|
||||
/obj/item/toy/balloon/update_icon_state()
|
||||
if(src.reagents.total_volume >= 1)
|
||||
icon_state = "waterballoon"
|
||||
item_state = "balloon"
|
||||
@@ -200,8 +204,8 @@
|
||||
custom_materials = list(/datum/material/iron=10, /datum/material/glass=10)
|
||||
var/amount_left = 7
|
||||
|
||||
/obj/item/toy/ammo/gun/update_icon()
|
||||
src.icon_state = text("357OLD-[]", src.amount_left)
|
||||
/obj/item/toy/ammo/gun/update_icon_state()
|
||||
icon_state = "357OLD-[amount_left]"
|
||||
|
||||
/obj/item/toy/ammo/gun/examine(mob/user)
|
||||
. = ..()
|
||||
@@ -319,7 +323,8 @@
|
||||
|
||||
add_fingerprint(user)
|
||||
|
||||
/obj/item/toy/sword/cx/update_icon()
|
||||
/obj/item/toy/sword/cx/update_overlays()
|
||||
. = ..()
|
||||
var/mutable_appearance/blade_overlay = mutable_appearance(icon, "cxsword_blade")
|
||||
var/mutable_appearance/gem_overlay = mutable_appearance(icon, "cxsword_gem")
|
||||
|
||||
@@ -327,15 +332,10 @@
|
||||
blade_overlay.color = light_color
|
||||
gem_overlay.color = light_color
|
||||
|
||||
cut_overlays() //So that it doesn't keep stacking overlays non-stop on top of each other
|
||||
|
||||
add_overlay(gem_overlay)
|
||||
. += gem_overlay
|
||||
|
||||
if(active)
|
||||
add_overlay(blade_overlay)
|
||||
if(ismob(loc))
|
||||
var/mob/M = loc
|
||||
M.update_inv_hands()
|
||||
. += blade_overlay
|
||||
|
||||
/obj/item/toy/sword/cx/AltClick(mob/living/user)
|
||||
. = ..()
|
||||
@@ -843,15 +843,16 @@
|
||||
user.visible_message("[user] draws a card from the deck.", "<span class='notice'>You draw a card from the deck.</span>")
|
||||
update_icon()
|
||||
|
||||
/obj/item/toy/cards/deck/update_icon()
|
||||
if(cards.len > 26)
|
||||
icon_state = "deck_[deckstyle]_full"
|
||||
else if(cards.len > 10)
|
||||
icon_state = "deck_[deckstyle]_half"
|
||||
else if(cards.len > 0)
|
||||
icon_state = "deck_[deckstyle]_low"
|
||||
else if(cards.len == 0)
|
||||
icon_state = "deck_[deckstyle]_empty"
|
||||
/obj/item/toy/cards/deck/update_icon_state()
|
||||
switch(cards.len)
|
||||
if(27 to INFINITY)
|
||||
icon_state = "deck_[deckstyle]_full"
|
||||
if(11 to 27)
|
||||
icon_state = "deck_[deckstyle]_half"
|
||||
if(1 to 11)
|
||||
icon_state = "deck_[deckstyle]_low"
|
||||
else
|
||||
icon_state = "deck_[deckstyle]_empty"
|
||||
|
||||
/obj/item/toy/cards/deck/attack_self(mob/user)
|
||||
if(cooldown < world.time - 50)
|
||||
|
||||
Reference in New Issue
Block a user