Nanopaste bugfix (#20669)

Shifts nanopaste to use contained sprites, resolves a bug in live in
which nanopaste inhands disappeared if you used any of it to repair
anything.
This commit is contained in:
hazelrat
2025-03-28 23:23:44 +00:00
committed by GitHub
parent e906b85459
commit a4ce195bf3
5 changed files with 62 additions and 4 deletions
+3 -4
View File
@@ -3,11 +3,9 @@
singular_name = "nanite swarm"
desc = "A tube of paste containing swarms of repair nanites. Very effective in repairing robotic machinery."
icon = 'icons/obj/item/stacks/nanopaste.dmi'
item_icons = list(
slot_l_hand_str = 'icons/mob/items/stacks/lefthand_nanopaste.dmi',
slot_r_hand_str = 'icons/mob/items/stacks/righthand_nanopaste.dmi',
)
icon_state = "tube"
item_state = "tube"
contained_sprite = TRUE
origin_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3)
amount = 10
surgerysound = 'sound/items/surgery/bonegel.ogg'
@@ -82,6 +80,7 @@
singular_name = "nanite swarm"
desc = "A tube of paste containing swarms of repair nanites. This one appears to contain different nanites."
icon_state = "tube-surge"
item_state = "tube-surge"
origin_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 4, TECH_MAGNET = 5, TECH_POWER = 5, TECH_COMBAT = 3, TECH_ILLEGAL = 4)
amount = 20
var/used = FALSE
@@ -0,0 +1,59 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# - (fixes bugs)
# wip
# - (work in progress)
# qol
# - (quality of life)
# soundadd
# - (adds a sound)
# sounddel
# - (removes a sound)
# rscadd
# - (adds a feature)
# rscdel
# - (removes a feature)
# imageadd
# - (adds an image or sprite)
# imagedel
# - (removes an image or sprite)
# spellcheck
# - (fixes spelling or grammar)
# experiment
# - (experimental change)
# balance
# - (balance changes)
# code_imp
# - (misc internal code change)
# refactor
# - (refactors code)
# config
# - (makes a change to the config files)
# admin
# - (makes changes to administrator tools)
# server
# - (miscellaneous changes to server)
#################################
# Your name.
author: hazelmouse
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Nanopaste no longer becomes invisible on character sprites after being partially used."
- refactor: "Nanopaste now uses contained sprites."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 2.3 KiB