Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bandages aren't consumed when used #20006

Closed
sick-trigger opened this issue Jan 11, 2017 · 16 comments

Comments

Projects
None yet
9 participants
@sick-trigger
Copy link
Contributor

commented Jan 11, 2017

Using bandages to heal or stop bleeding doesn't actually use up a bandage. First aid kits aren't affected. Probably came from #18681

@CoroNaut

This comment has been minimized.

Copy link

commented Jan 11, 2017

I can confirm it happens in build 6132.

@jedibob5

This comment has been minimized.

Copy link

commented Jan 12, 2017

Neither does taking aspirin, on my end.

@keyspace

This comment has been minimized.

Copy link
Contributor

commented Jan 12, 2017

Ran a few tests manually, good candidate for unit automated testing.

item type contained [E]ating [a]ctivating
waterskin with mineral water food yes ok ok
peanut butter candy food no ok ok
plastic bag of peanut butter candies food yes ok ok
first aid kit med no can't (as expected) ok
bandage med no ok not consumed (bug)
cigarette med no ok not consumed (bug)
pack with cigarettes med yes ok can't (bug)

Ping @codemime

Haven't bisected to #18681 exactly, but appeared around time of merge.


EDIT: Suspect to affect all meds.

@AncientSion

This comment has been minimized.

Copy link

commented Jan 12, 2017

tried aspirin, poppy painkiller and poppy sleep as well as bandage, no charges used.

@codemime

This comment has been minimized.

Copy link
Member

commented Jan 13, 2017

Will fix.

@codemime codemime added the <Bug> label Jan 13, 2017

@codemime codemime self-assigned this Jan 13, 2017

@pisskop

This comment has been minimized.

Copy link
Contributor

commented Jan 13, 2017

Gin quantity was not consumed when I used it.

@keyspace

This comment has been minimized.

Copy link
Contributor

commented Jan 14, 2017

Anecdotal (haven't tested), but Chesthole on IRC has mentioned that:

When you use ... heroin ..., it does not consume a charge.
Nor does it ever effect you negatively.
I did 40 heroin, and it is the waiting that kills you apparently.

@keyspace

This comment has been minimized.

Copy link
Contributor

commented Jan 14, 2017

Seems that the [a]ctivate ("Use item") menu doesn't call have player::consume_item() EDIT1: in its code pathway.


EDIT1: I'll do a bisect to verify it's really #18681. :/ EDIT3: Yes.

5e078c8 is the culprit. a9f7458 and 969b2dc (respectively 3 and 1 commits earlier) don't have "can't activate" bug, but give a debugmsg:

Unknown comestible type of item: cigarette (both from pack and not)

EDIT4: a matchbook charge is consumed, though.

EDIT5: I can no longer edit the table above to include a "uses tool" column. Guess Github thinks "enough is enough".

@Chezzo

This comment has been minimized.

Copy link
Contributor

commented Jan 14, 2017

@keyspace

This comment has been minimized.

Copy link
Contributor

commented Jan 14, 2017

@codemime sorry to ping again, comment above was edited with bisect results. EDIT: and they're weird.


EDIT2:

I was incorrect, @Keyspace-1.

No, you were. [A]ctivating a cigarette (compared to [e]ating) doesn't give the effects (Lit up, Nicotine and Stimulant) on current master. (EDIT3: it does on 969b2dc.) See comment above.

@codemime

This comment has been minimized.

Copy link
Member

commented Jan 14, 2017

@keyspace I'd appreciate if you test the fix.

@AncientSion

This comment has been minimized.

Copy link

commented Jan 15, 2017

Yay, a fix. This one stands really out as a huge issue, because basicly you need to keep of track and manually drop the items you have...used,.
Itherwise you are potentially cheating. Hope this fix is live soon as well as..working ;)
good luck,

@bpwatts

This comment has been minimized.

Copy link

commented Jan 15, 2017

Hydrogen Peroxide has the same issue... can have unlimited uses if found -- but it was also not available to use except from the '%' menu. I could not [a]pply it as I could a bandage.

@codemime

This comment has been minimized.

Copy link
Member

commented Jan 15, 2017

This should be possible with the fix applied.

@keyspace

This comment has been minimized.

Copy link
Contributor

commented Jan 16, 2017

Note: build 6126 is the one before the breaking changes.

@jedibob5

This comment has been minimized.

Copy link

commented Jan 17, 2017

Has this not been fixed yet? If the bug is this difficult to correct, shouldn't we revert the commit that originated it and reintroduce whatever feature it was trying to implement once it can be done correctly? It's a pretty serious issue to be leaving on master for this long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.