More resprites (Aug 2023) (#17076)

* New chem cartridges

* IV changes

* more resprites

* Auto stash before merge of "resprites2" and "origin/master"

* Auto stash before merge of "resprites2" and "origin/master"

* new tanks and cash

* removes tripping

* credit chip sound change

* wristbound resprite

* changelog

* changelog2

* deconfliction

* agh
This commit is contained in:
naut
2023-08-21 20:50:13 +08:00
committed by GitHub
parent 9e5fcd509b
commit 74a347b53d
11 changed files with 98 additions and 57 deletions

View File

@@ -3,6 +3,7 @@
desc = "This goes in a chemical dispenser."
icon_state = "cartridge"
filling_states = "20;40;60;80;100"
w_class = ITEMSIZE_NORMAL
volume = CARTRIDGE_VOLUME_LARGE
@@ -29,6 +30,19 @@
else
setLabel(R.name)
/obj/item/reagent_containers/chem_disp_cartridge/update_icon()
cut_overlays()
if(reagents?.total_volume)
var/mutable_appearance/filling = mutable_appearance('icons/obj/reagentfillings.dmi', "[icon_state]-[get_filling_state()]")
filling.color = reagents.get_color()
add_overlay(filling)
if(!is_open_container())
var/lid_icon = "lid_[icon_state]"
var/mutable_appearance/lid = mutable_appearance(icon, lid_icon)
add_overlay(lid)
/obj/item/reagent_containers/chem_disp_cartridge/examine(mob/user)
..()
to_chat(user, "It has a capacity of [volume] units.")
@@ -65,6 +79,7 @@
to_chat(user, "<span class='notice'>You clear the label on \the [src].</span>")
label = ""
name = initial(name)
update_icon()
/obj/item/reagent_containers/chem_disp_cartridge/attack_self()
..()
@@ -74,6 +89,11 @@
else
to_chat(usr, "<span class = 'notice'>You take the cap off \the [src].</span>")
flags |= OPENCONTAINER
update_icon()
/obj/item/reagent_containers/chem_disp_cartridge/attackby(obj/item/W as obj, mob/user as mob)
..()
update_icon()
/obj/item/reagent_containers/chem_disp_cartridge/afterattack(obj/target, mob/user , flag)
if (!is_open_container() || !flag)
@@ -108,3 +128,4 @@
else
return ..()
update_icon()