New feature: Diseaes affect your mercenaries. They can be contracted in varíous ways and have varying effects.

For more info, see http://www.ja-galaxy-forum.com/ubbthreads.php/topics/334918#Post334918

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2099 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
Flugente
2014-08-10 13:05:18 +00:00
parent 2f741262b6
commit 3433ec6b1c
10 changed files with 914 additions and 3 deletions
+37 -1
View File
@@ -16,6 +16,8 @@ You can now select several drug components and build your own drugs from them.
determines how fast the sideeffect will wear out.
<ubMoralBacklash>
determines if there will be a morale drop once the <ubDrugEffect> hits 0.
<ubDiseaseCure>
cures the amount of an outbreak of disease x - 1
How do you make a drug?
- Simply create a new Item in the Items.xml with the following values set:
@@ -52,7 +54,7 @@ How do you make a drug?
You can combine "mix" different drug effects.
For example, the new drug 'Occulin' has a <DrugType>425984</DrugType>. This gives it the effects of DRUG_BLIND, DRUG_VISION and DRUG_TUNNELVISION. I've set the effects so that
- once you take the drug, your sight range increases 10%
- once the side effect starts, your sight range is lowered 10% nad you get up to 25% tunnelvison
- once the side effect starts, your sight range is lowered 10% and you get up to 25% tunnelvison
- once that is over, you are blinded for 2 turns
You can test the drug effect in game by showing the vision range of your merc. You will also notice icons on the merc portraits for different drug effects.
@@ -72,6 +74,7 @@ Note: The regeneration drug has no entries - that is intended, because this effe
<ubDrugSideEffect>0</ubDrugSideEffect>
<ubDrugSideEffectRate>0</ubDrugSideEffectRate>
<ubMoralBacklash>0</ubMoralBacklash>
<ubDiseaseCure>0</ubDiseaseCure>
</DRUG>
<DRUG>
<ubType>1</ubType>
@@ -293,4 +296,37 @@ Note: The regeneration drug has no entries - that is intended, because this effe
<ubDrugSideEffectRate>0</ubDrugSideEffectRate>
<ubMoralBacklash>0</ubMoralBacklash>
</DRUG>
<DRUG>
<ubType>23</ubType>
<name>Plague cure</name>
<ubDrugTravelRate>10</ubDrugTravelRate>
<ubDrugWearoffRate>1</ubDrugWearoffRate>
<ubDrugEffect>10</ubDrugEffect>
<ubDrugSideEffect>0</ubDrugSideEffect>
<ubDrugSideEffectRate>0</ubDrugSideEffectRate>
<ubMoralBacklash>0</ubMoralBacklash>
<ubDiseaseCure>1</ubDiseaseCure>
</DRUG>
<DRUG>
<ubType>24</ubType>
<name>Tetanus cure</name>
<ubDrugTravelRate>10</ubDrugTravelRate>
<ubDrugWearoffRate>1</ubDrugWearoffRate>
<ubDrugEffect>10</ubDrugEffect>
<ubDrugSideEffect>0</ubDrugSideEffect>
<ubDrugSideEffectRate>0</ubDrugSideEffectRate>
<ubMoralBacklash>0</ubMoralBacklash>
<ubDiseaseCure>4</ubDiseaseCure>
</DRUG>
<DRUG>
<ubType>25</ubType>
<name>Cholera cure</name>
<ubDrugTravelRate>10</ubDrugTravelRate>
<ubDrugWearoffRate>1</ubDrugWearoffRate>
<ubDrugEffect>10</ubDrugEffect>
<ubDrugSideEffect>0</ubDrugSideEffect>
<ubDrugSideEffectRate>0</ubDrugSideEffectRate>
<ubMoralBacklash>0</ubMoralBacklash>
<ubDiseaseCure>6</ubDiseaseCure>
</DRUG>
</DRUGSLIST>
@@ -350,4 +350,13 @@
<bMoraleMod>1</bMoraleMod>
<usDecayRate>1.5</usDecayRate>
</FOOD>
<FOOD>
<uiIndex>39</uiIndex>
<szName>Medical</szName>
<bFoodPoints>1</bFoodPoints>
<bDrinkPoints>0</bDrinkPoints>
<ubPortionSize>5</ubPortionSize>
<bMoraleMod>0</bMoraleMod>
<usDecayRate>0.0</usDecayRate>
</FOOD>
</FOODSLIST>
+118
View File
@@ -184,6 +184,8 @@
<buddyitem>0</buddyitem>
<SleepModifier>0</SleepModifier>
<usSpotting>0</usSpotting>
<diseaseprotectionface>0</diseaseprotectionface>
<diseaseprotectionhand>0</diseaseprotectionhand>
<STAND_MODIFIERS>
<FlatBase>0</FlatBase>
<PercentBase>0</PercentBase>
@@ -6571,6 +6573,7 @@
<BR_UsedInventory>1</BR_UsedInventory>
<GasMask>1</GasMask>
<usOverheatingCooldownFactor>100.0</usOverheatingCooldownFactor>
<diseaseprotectionface>1</diseaseprotectionface>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
@@ -51296,4 +51299,119 @@
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
<ITEM>
<uiIndex>1710</uiIndex>
<szItemName>Surgical mask</szItemName>
<szLongItemName>Surgical mask</szLongItemName>
<szItemDesc>This simple mask protects you somewhat from infection by airborne diseases.</szItemDesc>
<szBRName>Surgical mask</szBRName>
<szBRDesc>If you are doctor or live in an asian megacity, you will need these.</szBRDesc>
<usItemClass>32768</usItemClass>
<nasLayoutClass>1</nasLayoutClass>
<ubGraphicType>2</ubGraphicType>
<ubGraphicNum>224</ubGraphicNum>
<ubWeight>1</ubWeight>
<ubPerPocket>1</ubPerPocket>
<ItemSize>10</ItemSize>
<usPrice>1</usPrice>
<ubCoolness>4</ubCoolness>
<Damageable>1</Damageable>
<BR_NewInventory>20</BR_NewInventory>
<diseaseprotectionface>1</diseaseprotectionface>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
<ITEM>
<uiIndex>1711</uiIndex>
<szItemName>Surgical gloves</szItemName>
<szLongItemName>Surgical gloves</szLongItemName>
<szItemDesc>These simple gloves protect you from infection by contact with infected persons.</szItemDesc>
<szBRName>Surgical gloves</szBRName>
<szBRDesc>Useful for doctors. Not useful in snow.</szBRDesc>
<usItemClass>268435456</usItemClass>
<nasLayoutClass>1</nasLayoutClass>
<ubGraphicType>2</ubGraphicType>
<ubGraphicNum>225</ubGraphicNum>
<ubWeight>1</ubWeight>
<ubPerPocket>1</ubPerPocket>
<ItemSize>10</ItemSize>
<usPrice>1</usPrice>
<ubCoolness>4</ubCoolness>
<Damageable>1</Damageable>
<BR_NewInventory>20</BR_NewInventory>
<diseaseprotectionhand>1</diseaseprotectionhand>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
<ITEM>
<uiIndex>1712</uiIndex>
<szItemName>Plague medicine</szItemName>
<szLongItemName>Plague medicine</szLongItemName>
<szItemDesc>It may look unimportant, but this little pill can cure the plague. Who would've thought that possible?</szItemDesc>
<szBRName>Plague medicine</szBRName>
<szBRDesc>Not for sale through BR.</szBRDesc>
<usItemClass>268435456</usItemClass>
<nasLayoutClass>1</nasLayoutClass>
<ubGraphicType>2</ubGraphicType>
<ubGraphicNum>122</ubGraphicNum>
<ubWeight>1</ubWeight>
<ubPerPocket>8</ubPerPocket>
<ItemSize>16</ItemSize>
<usPrice>400</usPrice>
<ubCoolness>4</ubCoolness>
<Medical>1</Medical>
<DrugType>4194304</DrugType>
<FoodType>39</FoodType>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
<ITEM>
<uiIndex>1713</uiIndex>
<szItemName>Tetanus medicine</szItemName>
<szLongItemName>Tetanus medicine</szLongItemName>
<szItemDesc>This injection cures tetanus. Might sting a bit.</szItemDesc>
<szBRName>Tetanus medicine</szBRName>
<szBRDesc>Not for sale through BR.</szBRDesc>
<usItemClass>268435456</usItemClass>
<nasLayoutClass>1</nasLayoutClass>
<ubGraphicType>1</ubGraphicType>
<ubGraphicNum>70</ubGraphicNum>
<ubWeight>1</ubWeight>
<ubPerPocket>8</ubPerPocket>
<ItemSize>16</ItemSize>
<usPrice>300</usPrice>
<ubCoolness>2</ubCoolness>
<Damageable>1</Damageable>
<Medical>1</Medical>
<DrugType>8388608</DrugType>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
<ITEM>
<uiIndex>1714</uiIndex>
<szItemName>Cholera medicine</szItemName>
<szLongItemName>Cholera medicine</szLongItemName>
<szItemDesc>A cure for cholera.</szItemDesc>
<szBRName>Cholera medicine</szBRName>
<szBRDesc>Not for sale through BR.</szBRDesc>
<usItemClass>268435456</usItemClass>
<nasLayoutClass>1</nasLayoutClass>
<ubGraphicType>1</ubGraphicType>
<ubGraphicNum>70</ubGraphicNum>
<ubWeight>1</ubWeight>
<ubPerPocket>8</ubPerPocket>
<ItemSize>16</ItemSize>
<usPrice>500</usPrice>
<ubCoolness>3</ubCoolness>
<Damageable>1</Damageable>
<Medical>1</Medical>
<DrugType>16777216</DrugType>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
</ITEMLIST>