mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
Fixes an oversight with syringes.
- The bug was that it was cut_overlays(src) instead of just cut_overlays() - Swaps it over to use add_overlay(XYZ) instead of add_overlay +=
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
|
||||
//Allow for capped syringes
|
||||
/obj/item/weapon/reagent_containers/syringe/update_icon()
|
||||
cut_overlays(src)
|
||||
cut_overlays()
|
||||
|
||||
var/matrix/tf = matrix()
|
||||
if(isstorage(loc))
|
||||
@@ -101,12 +101,11 @@
|
||||
icon_state = "capped"
|
||||
return
|
||||
|
||||
var/list/new_overlays = list()
|
||||
var/rounded_vol = round(reagents.total_volume, round(reagents.maximum_volume / 3))
|
||||
if(reagents.total_volume)
|
||||
filling = image(icon, src, "filler[rounded_vol]")
|
||||
filling.color = reagents.get_color()
|
||||
new_overlays += filling
|
||||
add_overlay(filling)
|
||||
|
||||
if(ismob(loc))
|
||||
var/injoverlay
|
||||
@@ -115,9 +114,8 @@
|
||||
injoverlay = "draw"
|
||||
if (SYRINGE_INJECT)
|
||||
injoverlay = "inject"
|
||||
new_overlays += injoverlay
|
||||
add_overlay(injoverlay)
|
||||
|
||||
add_overlay(new_overlays)
|
||||
icon_state = "[rounded_vol]"
|
||||
item_state = "syringe_[rounded_vol]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user