mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
bb0461be16
* Add item replacement framework * Correctance of English Co-Authored-By: Dedmen Miller <dedmen@users.noreply.github.com> * Remove unecessary code * Use new item replacement framework for medical items * minor fixes, support GVAR(convertItems) setting * use forEach, convert atropine to epi * replace with adenosine
24 lines
733 B
C++
24 lines
733 B
C++
// This config accepts both item type numbers and item class names
|
|
// Item type numbers need the prefix ItemType_, so for example ItemType_401
|
|
// Class names need no special prefix
|
|
class EGVAR(medical,replacementItems) {
|
|
DOUBLES(ItemType,TYPE_FIRST_AID_KIT)[] = {
|
|
{"ACE_fieldDressing", 1},
|
|
{"ACE_packingBandage", 1},
|
|
{"ACE_morphine", 1},
|
|
{"ACE_tourniquet", 1}
|
|
};
|
|
DOUBLES(ItemType,TYPE_MEDIKIT)[] = {
|
|
{"ACE_fieldDressing", 1},
|
|
{"ACE_packingBandage", 2},
|
|
{"ACE_epinephrine", 1},
|
|
{"ACE_morphine", 1},
|
|
{"ACE_salineIV_250", 1},
|
|
{"ACE_tourniquet", 1},
|
|
{"ACE_splint", 2}
|
|
};
|
|
ACE_atropine[] = {
|
|
{"ACE_adenosine", 1}
|
|
};
|
|
};
|