Jump to content

Change prices of resources for all resources from all mods


Recommended Posts

I'm trying to remove the cost of electricity and make uranium (plus others not common fuels) extremely expensive so I can mine it and send it back to earth to recover. in MM, I'm struggling to do this 

 

Can you tell me why my syntax is wrong 

 

 

@RESOURCE_DEFINITION[*]:HAS[#cost[*]]
{  
     %addedCost = 999.0
    %entCost = 999.0

  @cost *= #$addedCost$ 
    @entryCost *= #$entCost$   
    
}

@CONTRACT_TYPE[*]:HAS[#rewardFunds]
{
  @rewardFunds *= 15000
  @BaseAdvance = @rewardFunds*0.515
}




@PART[*]:HAS[#category[Electrical],#cost[*]]
{
    %addedCost = 0.0
    %entCost = 20.0

  @cost = 0
    @entryCost *= #$entCost$   
}

@PART[*]:HAS[@RESOURCE[LiquidFuel],!RESOURCE[Oxidizer]]:AFTER[InterstellarFuelSwitch]
{
	// Remove temporary variables to eliminate log spam
	!totalCap = 0
	!onlyLH2 = 0
	!cryoPower = 0
}
@RESOURCE_DEFINITION[*]:HAS[#unitCost]
{  
    @unitCost *= 200
}
@RESOURCE_DEFINITION[*]:HAS[#unitCost,#name[ElectricCharge]]
{  
    @unitCost = 1.5
    @unitCost *= 200
}
@RESOURCE_DEFINITION[Electricity]:HAS[#unitCost]:FINAL
{  
     @unitCost = 0
    
}
 @RESOURCE[Electricity]
    {
         @unitCost = 0
    }
@PART[*]:HAS[@RESOURCE[*]]:FINAL
{
	
    @RESOURCE[Electricity]
    {
         @unitCost = 5.0
    }
}

@Contracts:HAS[@Funds]:FINAL
{


        @Funds
        {
        @BaseReward *= 900
        @BaseAdvance *= 900
        }
    }

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...