Skip to content

Medical - Support Magazine Treatment Items#9816

Merged
johnb432 merged 23 commits intoacemod:masterfrom
BrettMayson:magazine_treatment
Mar 21, 2024
Merged

Medical - Support Magazine Treatment Items#9816
johnb432 merged 23 commits intoacemod:masterfrom
BrettMayson:magazine_treatment

Conversation

@BrettMayson
Copy link
Copy Markdown
Member

@BrettMayson BrettMayson commented Mar 1, 2024

When merged this pull request will:

  • Moving over from KAT so they can stop overwriting ACE functions
  • Converts the painkiller to a magazine

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

BrettMayson and others added 3 commits March 1, 2024 19:11
Co-Authored-By: Blue <itzblueman@gmail.com>
Co-Authored-By: Blue <itzblueman@gmail.com>
@BrettMayson BrettMayson marked this pull request as ready for review March 3, 2024 04:59
Comment thread addons/medical_treatment/functions/fnc_hasItem.sqf Outdated
Comment thread addons/medical_treatment/CfgWeapons.hpp
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_getCountOfItem.sqf Outdated
Comment thread addons/medical_treatment/functions/fnc_treatmentFailure.sqf Outdated
BrettMayson and others added 4 commits March 3, 2024 17:12
Co-Authored-By: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
@BrettMayson BrettMayson requested a review from LinkIsGrim March 4, 2024 00:46
@BrettMayson BrettMayson added this to the 3.17.0 milestone Mar 4, 2024
@BrettMayson BrettMayson requested a review from johnb432 March 4, 2024 01:13
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Copy link
Copy Markdown
Contributor

@johnb432 johnb432 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite recommending isClass (configFile >> "CfgMagazines" >> _usedItem) over the BIS function, I'm a little worried about items of the same class name being in CfgWeapons and CfgMagazines. I'm not sure it's possible though.

Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_uniqueItems.sqf Outdated
Comment thread addons/common/functions/fnc_uniqueItems.sqf Outdated
Comment thread addons/medical_treatment/functions/fnc_medication.sqf Outdated
Comment thread addons/medical_treatment/functions/fnc_treatmentFailure.sqf Outdated
@LinkIsGrim
Copy link
Copy Markdown
Member

Possible, yes. Common? Not really.

BrettMayson and others added 3 commits March 4, 2024 09:34
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Comment thread docs/wiki/framework/arsenal-framework.md Outdated
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
@johnb432
Copy link
Copy Markdown
Contributor

johnb432 commented Mar 4, 2024

Possible, yes. Common? Not really.

Still makes me feel uneasy about this.

Comment thread addons/medical_treatment/functions/fnc_useItem.sqf Outdated
Comment thread addons/medical_gui/functions/fnc_countTreatmentItems.sqf Outdated
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
@johnb432 johnb432 dismissed their stale review March 6, 2024 11:08

Stale

Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_getCountOfItem.sqf
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
BrettMayson and others added 2 commits March 10, 2024 13:21
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-Authored-By: LinkIsGrim <salluci.lovi@gmail.com>
@BrettMayson BrettMayson requested a review from johnb432 March 11, 2024 03:44
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
Comment thread addons/common/functions/fnc_uniqueItems.sqf Outdated
Comment thread addons/common/functions/fnc_adjustMagazineAmmo.sqf Outdated
@BrettMayson
Copy link
Copy Markdown
Member Author

Thanks @johnb432 I haven't had a chance to look at this in a few days

@johnb432 johnb432 requested a review from LinkIsGrim March 17, 2024 11:58
@jonpas jonpas added the kind/feature Release Notes: **ADDED:** label Mar 17, 2024
Copy link
Copy Markdown
Member

@LinkIsGrim LinkIsGrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, ingame testing to follow

@johnb432 johnb432 merged commit 3c5b46c into acemod:master Mar 21, 2024
@BrettMayson BrettMayson deleted the magazine_treatment branch March 30, 2024 02:49
MiszczuZPolski pushed a commit to KAT-Advanced-Medical/KAM that referenced this pull request Apr 1, 2024
**When merged this pull request will:**
- Chemical is now modular
- Surgery is now modular
- Pharma is now modular
- Create ACE events so that KAM doesn't need to overwrite some files

**Semi Related**
- Update to support ACE's new maxDoseDeviation

Requires:
- acemod/ACE3#9813
- acemod/ACE3#9816

Moved from KAM to ACE:
- acemod/ACE3#9817
- acemod/ACE3#9815

Currently removed, needs to be added to ACE:
- Show inactive status setting for medical_gui

### IMPORTANT

- [Development Guidelines](https://ace3.acemod.org/wiki/development/)
are read, understood and applied.
- Title of this PR uses our standard template `Component -
Add|Fix|Improve|Change|Make|Remove {changes}`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Release Notes: **ADDED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants