Skip to content

Commit

Permalink
Malleable glass fix (#2564)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

The "fill_icon" variable didn't seem to actually replace the icon file
for glasses


![image](https://github.com/shiptest-ss13/Shiptest/assets/24857008/0c786c51-c273-480f-8562-5cf0ebb6c031)

## Why It's Good For The Game

fixes #2372

## Changelog

πŸ†‘ 
fix: malleable glasses now show their reagents again
/πŸ†‘

<!-- Both πŸ†‘'s are required for the changelog to work! You can put
your name to the right of the first πŸ†‘ if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
SomeguyManperson authored Dec 6, 2023
1 parent f8a1df4 commit b84357e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/reagents/reagent_containers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
return

var/fill_name = fill_icon_state? fill_icon_state : icon_state
var/mutable_appearance/filling = mutable_appearance('icons/obj/reagentfillings.dmi', "[fill_name][fill_icon_thresholds[1]]")
var/mutable_appearance/filling = mutable_appearance(fill_icon, "[fill_name][fill_icon_thresholds[1]]")

var/percent = round((reagents.total_volume / volume) * 100)
for(var/i in 1 to fill_icon_thresholds.len)
Expand Down

0 comments on commit b84357e

Please sign in to comment.