-
Notifications
You must be signed in to change notification settings - Fork 108
Configuration
The 0-SCore/Config/blocks.xml contains the Food spoilage snippet
<property class="FoodSpoilage">
<property name="Logging" value="false"/>
<!-- Turns on Food spoilage-->
<property name="FoodSpoilage" value="false" />
<!-- This is necessary for v1.0 for a bug that has been fixed in v1.1 -->
<property name="UseAlternateItemValue" value="false" />
<!-- Amount of spoilage per tick when an item is on the tool belt -->
<property name="Toolbelt" value="6" />
<!-- Amount of spoilage per tick when an item is in the back pack -->
<property name="Backpack" value="5" />
<!-- Amount of spoilage per tick when in a standard container -->
<property name="Container" value="4" />
<!-- absolute minimum spoilage per tick -->
<property name="MinimumSpoilage" value="1" />
<!-- Global Setting Example value=10 10 ticks per Spoilage increase. -->
<property name="TickPerLoss" value="10" />
<!-- When spoiled, this item will turn into this item.-->
<property name="SpoiledItem" value="foodRottingFlesh" />
<!-- Determines if the entire stack spoils at the same time -->
<property name="FullStackSpoil" value="false" />
</property>
For items that are expected to spoil, you must set the following properties:
<property name="Spoilable" value="true" />
<property name="ShowQuality" value="false"/>
<property name="SpoilageMax" value="1000" />
<property name="SpoilagePerTick" value="1" />
These items are optional, and will over-ride individual settings from the global setting in blocks
<property name="SpoiledItem" value="foodRottingFlesh" />
<property name="TickPerLoss" value="500" />
For storage containers, you can configure them so that some containers will spoil faster, or slower, than the defaults.
The higher the Preserve bonus, the slower it'll spoil.
<property name="PreserveBonus" value="1.75" />
Created with the Personal Edition of HelpNDoc: HelpNDoc's Project Analyzer: Incredible documentation assistant
Copyright © by . All Rights Reserved.
- Introduction
-
Features and Functionalities
- Core Features
- Default On Features
- Challenges
- Encumbrance
- Craft From Containers
- Player Features
- Zombie Features
- Advanced Locks
- Food Spoilage
- Blocks
- Buffs
-
MinEvents
- MinEventActionAddByFactionSDX
- MinEventActionAddScriptToTransform
- MinEventActionAdjustTransformValues
- MinEventActionAnimatorFireTriggerSDX
- MinEventActionAnimatorSpeedSDX
- MinEventActionAnimatorSetFloatSDX
- MinEventActionAnimatorSetIntSDX
- MinEventActionAttachPrefabWithAnimationsToEntity
- MinEventActionAutoRedeemChallenges
- MinEventActionChangeFactionSDX
- MinEventActionCheckWeapon
- MinEventActionClearOwner
- MinEventActionClearStaleHires
- MinEventActionConvertItem
- MinEventActionCreateItemSDX
- MinEventActionDespawnNPC
- MinEventActionExecuteConsoleCommand
- MinEventActionExecuteConsoleCommandCVars
- MinEventActionGiveQuestSDX
- MinEventActionGuardClear
- MinEventActionGuardHere
- MinEventActionGuardThere
- MinEventActionHideNPCSDX
- MinEventActionModifyFactionSDX
- MinEventActionModifyRelatedFactionsSDX
- MinEventActionModifySkillSDX
- MinEventActionNotifyTeamAttack
- MinEventActionNotifyTeamTeleport
- MinEventActionOpenWindow
- MinEventActionPlayerLevelSDX
- MinEventActionPumpQuestSDX
- MinEventActionTeleportToQuest
- MinEventActionRandomLootSDX
- MinEventActionRecalculateEncumbrance
- MinEventActionResetTargetsSDX
- MinEventActionSetCVar
- MinEventActionSetDateToCVar
- MinEventActionSetFactionRelationship
- MinEventActionSetOrder
- MinEventActionSetOwner
- MinEventActionSetRevengeTarget
- MinEventActionShowToolTipSDX
- MinEventActionSkillPointSDX
- MinEventActionSpawnBabySDX
- MinEventActionSpawnEntitySDX
- MinEventActionSpawnEntityAtPoint
- MinEventActionSwapWeapon
- MinEventActionTeamTeleportNow
- MinEventActionTeleport
- MinEventActionToggleCamera
- Factions
- NPCs
- Portals
- Release Notes and Version History