Vgstation13: Sticky White Stuff

Created on 23 Feb 2017  路  4Comments  路  Source: vgstation-coders/vgstation13

Description of issue

When you extend a telescopic baton, it gets an irremovable white blood overlay on it for the rest of the round.

Difference between expected and actual behavior

Expected the baton to be clean until the chain of command needs a link removed.
Actually have to put up with the horror of an unclean baton.

Steps to reproduce

Extend a telebaton.

Issue bingo

Please check whatever applies. More checkboxes checked increase your chances of not being yelled at by every contributor.

  • [x] Issue could be reproduced at least once
  • [x] Issue could be reproduced by different players
  • [x] Issue could be reproduced in multiple rounds
  • [x] Issue happened in a recent (less than 7 days ago) round
  • [x] [Couldn't find an existing issue about this](https://github.com/d3athrow/vgstation13/issues)
Bug / Fix

Most helpful comment

Theres no problem with the baton doing added magic damage.

All 4 comments

Theres no problem with the baton doing added magic damage.

I always thought those were scratches, but there should be a better sprite for it than what there is right now.

I found the bit in code that fucks it up.

/obj/item/weapon/melee/telebaton/generate_blood_overlay() if(blood_overlays["[type][icon_state]"]) //Unless someone makes a wicked typepath this will never cause a problem return var/icon/I = new /icon(icon, icon_state) I.Blend(new /icon('icons/effects/blood.dmi', rgb(255,255,255)),ICON_ADD) //fills the icon_state with white (except where it's transparent) I.Blend(new /icon('icons/effects/blood.dmi', "itemblood"),ICON_MULTIPLY) //adds blood and the remaining white areas become transparant blood_overlays["[type][icon_state]"] = image(I)

That's not exactly the relevant part, but the relevant part is like two lines above, so kudos

Was this page helpful?
0 / 5 - 0 ratings

Related issues

D3athrow-Issues picture D3athrow-Issues  路  3Comments

N3X15 picture N3X15  路  3Comments

kol1th picture kol1th  路  3Comments

despotate picture despotate  路  3Comments

JustSumBody picture JustSumBody  路  3Comments