[BACKLOG] Fix for Harvesting #21


Closed
  • wrace0 created this issue May 23, 2018

    Bug Map

    SCMRmod

    Bug Description

    Difference with your version: instead of giving to depleted resource 10000 vespene,
    the content of depleted resource is holding at amount = 5.

    Remove all these strings (which remove unused in SCMR instructions) in your mod:
    (as you can check, you do not remove the same strings for assimilator and refinery)
    [Actors]
    <CActorUnit id="Extractor">
    <On index="79" removed="1"/>
    <On index="80" removed="1"/>
    <On index="81" removed="1"/>
    <On index="82" removed="1"/>
    <On index="83" removed="1"/>
    <On index="84" removed="1"/>
    <On index="85" removed="1"/>
    <On index="86" removed="1"/>
    <On index="87" removed="1"/>
    <On index="88" removed="1"/>
    <On index="89" removed="1"/>
    <On index="90" removed="1"/>

     

    Now add/make the modifications below:
    [Validators]
    <CValidatorUnitCompareResourceContents id="HasVespeneGT5">
    <WhichUnit Value="Source"/>
    <Compare value="GT"/>
    <Value value="5"/>
    </CValidatorUnitCompareResourceContents>


    <CValidatorUnitCompareResourceContents id="HasVespeneLT5">
    <WhichUnit Value="Source"/>
    <Compare value="LT"/>
    <Value value="5"/>
    </CValidatorUnitCompareResourceContents>

     

    [Effects]
    <CEffectApplyBehavior id="GasIsDepletedRaw">
    <ValidatorArray value="NotDead"/>
    </CEffectApplyBehavior>


    <CEffectModifyUnit id="GasAutoAdd">
    <ValidatorArray value="HasVespeneLT5"/>
    <Resources value="1"/>
    <ResourcesHarvestedFraction value="1"/>
    </CEffectModifyUnit>


    <CEffectSet id="GasIsEmptySFX">
    <ValidatorArray value="IsNotConstructing"/>
    <Alert value="ResourceExhausted_Vespene"/>
    <EffectArray value="GasAutoAdd"/>
    </CEffectSet>

     

    [Behaviors]
    <CBehaviorBuff id="ReplenishGas">
    <Period value="0.4"/>
    <InitialEffect value="GasIsEmptySFX"/>
    <PeriodicEffect value="GasAutoAdd"/>
    </CBehaviorBuff>


    <CBehaviorBuff id="GasisEmptyAssimilator">
    <RemoveValidatorArray index="0" value="HasVespeneGT5"/>
    </CBehaviorBuff>


    <CBehaviorBuff id="GasisEmptyExtractor">
    <RemoveValidatorArray index="0" value="HasVespeneGT5"/>
    </CBehaviorBuff>


    <CBehaviorBuff id="GasisEmptyRefinery">
    <RemoveValidatorArray index="0" value="HasVespeneGT5"/>
    </CBehaviorBuff>


    <CBehaviorBuff id="GasisEmptyVespene">
    <RemoveValidatorArray index="0" value="HasVespeneGT5"/>
    </CBehaviorBuff>


    <CBehaviorBuff id="GasisEmptyVespene2">
    <RemoveValidatorArray index="0" value="HasVespeneGT5"/>
    </CBehaviorBuff>

  • OmegaWeaponX posted a comment May 29, 2018

    Unsure of necessity at the moment

  • OmegaWeaponX edited title Aug 16, 2019
  • OmegaWeaponX closed issue Sep 16, 2019

To post a comment, please login or register a new account.