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
Closed

Bandages aren't consumed when used #20006

sick-trigger opened this issue Jan 11, 2017 · 16 comments
Assignees
Labels
<Bug> This needs to be fixed

Comments

@sick-trigger
Copy link
Contributor

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
Copy link

I can confirm it happens in build 6132.

@jedibob5
Copy link

Neither does taking aspirin, on my end.

@keyspace
Copy link
Contributor

keyspace 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
Copy link

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

@codemime
Copy link
Contributor

Will fix.

@codemime codemime added the <Bug> This needs to be fixed label Jan 13, 2017
@codemime codemime self-assigned this Jan 13, 2017
@pisskop
Copy link
Contributor

pisskop commented Jan 13, 2017

Gin quantity was not consumed when I used it.

@keyspace
Copy link
Contributor

keyspace 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
Copy link
Contributor

keyspace 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
Copy link
Contributor

Chezzo commented Jan 14, 2017 via email

@keyspace
Copy link
Contributor

keyspace 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
Copy link
Contributor

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

@AncientSion
Copy link

AncientSion 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
Copy link

bpwatts 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
Copy link
Contributor

This should be possible with the fix applied.

@keyspace
Copy link
Contributor

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

@jedibob5
Copy link

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
Labels
<Bug> This needs to be fixed
Projects
None yet
Development

No branches or pull requests

9 participants