Skip to content

Commit

Permalink
21/10/23 Bugfixes (#17648)
Browse files Browse the repository at this point in the history
  • Loading branch information
alsoandanswer authored Oct 22, 2023
1 parent 4354159 commit 8332ab1
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/game/objects/structures/stool_bed_chair_nest/stools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
if(!held_item || use_check_and_message(usr) || buckled || (anchored && padding_material)) // Make sure held_item = null if you don't want it to get picked up.
return
usr.visible_message(SPAN_NOTICE("[usr] [withdraw_verb]s \the [src.name]."), SPAN_NOTICE("You [withdraw_verb] \the [src.name]."))
var/obj/item/material/stool/S = new held_item(src.loc, material.name, padding_material ? padding_material.name : null, painted_colour) // Handles all the material code so you don't have to.
var/obj/item/material/stool/S = new held_item(src.loc, material.name, padding_material?.name, painted_colour) // Handles all the material code so you don't have to.
TransferComponents(S)
if(material_alteration & MATERIAL_ALTERATION_COLOR) // For snowflakes like wood chairs.
S.color = material.icon_colour
Expand Down Expand Up @@ -254,7 +254,7 @@
user.visible_message(SPAN_NOTICE("[user] [deploy_verb]s \the [src.name]."), SPAN_NOTICE("You [deploy_verb] \the [name]."))
// playsound(src, deploy_sound ? deploy_sound : drop_sound, DROP_SOUND_VOLUME)
user.drop_from_inventory(src)
var/obj/structure/bed/stool/S = new origin_type(get_turf(loc), material.name, padding_material ? padding_material.name : null, painted_colour) // Fuck me.
var/obj/structure/bed/stool/S = new origin_type(get_turf(loc), material?.name, padding_material?.name, painted_colour) // Fuck me.
TransferComponents(S)
S.dir = user.dir // Plant it where the user's facing
if(blood_DNA)
Expand Down Expand Up @@ -308,32 +308,32 @@
base_icon = "bar_stool"
origin_type = /obj/structure/bed/stool/bar

/obj/item/material/stool/bar/New(var/newloc, new_material)
/obj/item/material/stool/bar/New(var/newloc, new_material, new_padding_material, new_painted_colour)
if(!new_material)
new_material = MATERIAL_STEEL
..(newloc, new_material)
..(newloc, new_material, new_padding_material, new_painted_colour)

/obj/item/material/stool/hover
icon_state = "hover_stool_item"
item_state = "hover_stool"
base_icon = "hover_stool"
origin_type = /obj/structure/bed/stool/hover

/obj/item/material/stool/hover/New(var/newloc, new_material)
/obj/item/material/stool/hover/New(var/newloc, new_material, new_padding_material, new_painted_colour)
if(!new_material)
new_material = MATERIAL_SHUTTLE_SKRELL
..(newloc, new_material)
..(newloc, new_material, new_padding_material, new_painted_colour)

/obj/item/material/stool/bamboo
icon_state = "bamboo_stool_item"
item_state = "bamboo_stool"
base_icon = "bamboo_stool"
origin_type = /obj/structure/bed/stool/bamboo

/obj/item/material/stool/bamboo/New(var/newloc, new_material)
/obj/item/material/stool/bamboo/New(var/newloc, new_material, new_padding_material, new_painted_colour)
if(!new_material)
new_material = MATERIAL_BAMBOO
..(newloc, new_material)
..(newloc, new_material, new_padding_material, new_painted_colour)

/obj/structure/flora/log_bench
name = "log bench"
Expand Down
42 changes: 42 additions & 0 deletions html/changelogs/wezzy_211023fixes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
################################
# 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
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################

# Your name.
author: Wowzewow (Wezzy)

# 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, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Fixes padding issue with bar stools."
- bugfix: "Fixes invisible NKA pin and Grilled Carp Slice sprites."
Binary file modified icons/obj/item/reagent_containers/food/cultural/unathi.dmi
Binary file not shown.
Binary file modified icons/obj/item/reagent_containers/food/meat.dmi
Binary file not shown.
Binary file modified icons/obj/structure/chairs.dmi
Binary file not shown.
Binary file modified icons/obj/tajara_items.dmi
Binary file not shown.

0 comments on commit 8332ab1

Please sign in to comment.