Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - WraithCadmus

#1
Outdated / [B18] Arc Launcher
June 18, 2018, 05:42:37 PM
It's been on GitHub for a while but I just updated it and realised I never released it on the forum.

The Arc Launcher! An anti mech/shield/turret weapon based off a Charge Rifle. As the Incendiary Launcher is to molotovs so the Arc Launcher is to EMP grenades.

https://github.com/WraithCadmus/ArcLauncher/releases/tag/v0.3.1
https://steamcommunity.com/sharedfiles/filedetails/?id=1373234389

==Description==
One new weapon, an anti mech/shield/turret Arc Launcher.
Gated behind the Charged Shot research this weapon fires an energy projectile which bursts into a powerful EMP blast.

==Acquiring==
The Arc Launcher can be bought from traders, or built at a machining table.

==Bill of Materials==
At the machining table you can make you own, once Charged Shot has been researched. Costs and time are identical to the Charge Rifle
* 20 Steel
* 40 Plasteel
* 7 Components
* 833 Seconds (50,000 ticks)

==More stats==
The weapon copies the accuracies and ranges of the Incendiary Launcher, (range 24, accuracies 0.79/0.42/0.18/0.06 touch/short/medium/long)
The shot has a larger radius and damage though, 85 EMP damage in a 2.5 tile radius

==Notes==
Beware! The Arc launcher might (rarely) replace a Charge Rifle on a Mercenary Elite, giving raiders a way to stun your turrets or strip the shields from your brawlers.

Issues? Please report on Github
#2
Help / Making a new meal, nutrition plus another item
February 11, 2017, 08:05:18 AM
Hello, first-time modder trying to make a meal which needs nutrition plus another non-food item.

The problem I'm having (as I mostly just copy-pasted Simple Meal) is that the non-food ingredient is in some sort of filter, and I guess it's this line

<ingredientValueGetterClass>IngredientValueGetter_Nutrition</ingredientValueGetterClass>

So this makes all ingredients need a nutrition value, right? How do I 'break out' of this filter or reset it so I can have my non-food ingredient be a normal item?

Full RecipeDef below

  <RecipeDef>
    <defName>CanFood</defName>
    <label>can food</label>
    <description>Heat and preserve food in a can. Time-consuming and uses more ingredients to compensate for losses in the process.</description>
    <jobString>Canning food.</jobString>
    <workSpeedStat>CookSpeed</workSpeedStat>
    <requiredGiverWorkType>Cooking</requiredGiverWorkType>
    <effectWorking>Cook</effectWorking>
    <soundWorking>Recipe_CookMeal</soundWorking>
    <recipeUsers>
        <li>ElectricStove</li>
        <li>FueledStove</li>
    </recipeUsers>
    <workAmount>1000</workAmount>
    <allowMixingIngredients>true</allowMixingIngredients>
    <ingredientValueGetterClass>IngredientValueGetter_Nutrition</ingredientValueGetterClass>
    <ingredients>
      <li>
        <filter>
          <categories>
            <li>FoodRaw</li>
          </categories>
        </filter>
        <count>0.6</count>
      </li>
      <li>
        <filter>
          <thingDefs>
            <li>FreshCan</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
    </ingredients>
    <fixedIngredientFilter>
      <categories>
        <li>FoodRaw</li>
      </categories>
      <disallowedSpecialFilters>
        <li>AllowPlantFood</li>
      </disallowedSpecialFilters>
    </fixedIngredientFilter>
    <defaultIngredientFilter>
      <categories>
        <li>FoodRaw</li>
      </categories>
      <exceptedCategories>
        <li>EggsFertilized</li>
      </exceptedCategories>
      <exceptedThingDefs>
        <li>Human_Meat</li>
        <li>Megaspider_Meat</li>
      </exceptedThingDefs>
    </defaultIngredientFilter>
<products>
<FilledCan>1</FilledCan>
</products>
    <workSkill>Cooking</workSkill>
  </RecipeDef>


</RecipeDefs>