Skip to content

Commit

Permalink
medical: Check ACTION_RIPBANDAGE not ACTION_BANDAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrukar committed Oct 18, 2023
1 parent 22059d7 commit ca9df3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medical/module/selfbandage/selfbandage_bandage.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ extend class UaS_SelfBandage {

void TryRipBandage() {
if (CheckCovered() || !mti.currentWound) { return; }
if (actionType != ACTION_BANDAGE && mti.patient == owner && owner.pitch < 45) { owner.pitch += 6; return; }
if (actionType != ACTION_RIPBANDAGE && mti.patient == owner && owner.pitch < 45) { owner.pitch += 6; return; }
if (mti.currentWound.patched <= 0.) {
currentMessage.text = Stringtable.Localize("$UI_SELFBDG_NOTHINGTOBEDONE");
currentMessage.timeout = 2 * 35;
Expand Down

0 comments on commit ca9df3f

Please sign in to comment.