Skip to main content

lootprops.ini

Overview

This file governs drop chance of specific gear and commodities if they are equipped on a given ship, as well as 'phantom loot' that can drop from anything. If an entry appears in this file, it needs the lootable = true flag.

Syntax

There are two block types here. Any mLootProps blocks should be called before PhantomLoot ones.

[mLootProps]

Gear listed here will only drop if it is actually equipped on a ship. Gear without the lootable = true flag defined but specified here may cause crashes.

[mLootProps]
nickname = string
drop_properties = FLOAT, INT, INT, INT, INT, INT
ParameterInformation
nicknameThe name of the equipment as defined in equipment.
drop_propertieschance, min_worth, worth_mult, min, max1, max2
chance is the percentage the drop will occur (i.e. divided by 100)
min_worth is the minimum worth you must have for the drop to occur
worth_mult, see below
min is the minimum number to drop
max1 and max2 are the maximum to drop

[PhantomLoot]

Gear listed here is able to drop from any NPC within the toughness range given.

[PhantomLoot]
nickname = STRING
toughness_range = INT, INT
percent_chance = FLOAT
num_to_drop = INT, INT
ParameterInformation
nicknameThe name of the equipment as defined in equipment.
toughness_rangeI think this is the toughness range the player is required to be in for these drops to occur
percent_chancePrecentage chance to drop, 0-100
num_to_dropThe quantity of the item to drop, with INTs here being minimum and maximum respectively

Additional Information

A thread with a further breakdown of how drop_properties works can be found here.

The forumla can be broken down as follows: (Credit to Adoxa for this one)

count = (worth - min_worth) / worth_mult
if (count >= target_count)
count = target_count
if (count + min > max1)
count = max1
else
count += min
if (count >= target_count)
count = target_count
prob = chance * count
count = floor( prob )
prob -= count
if (rand < prob)
++count
if (count >= max2)
count = max2