Upgrade.

Vars | |
behavior | which behavior should this type follow. Should this be completely excluded from the buy menu? should it be one of the dropdown options? or a normal item? |
---|---|
change_purchase | The change of price for item per purchase, recommended for mass producing stuff or limited upgrade. |
clearance_req | Clearance requirment to buy this upgrade. 5x is level 6. Why is it not that way? no one knows. |
desc | name of upgrades, not items. Items are at research_upgrades.dm somewhere in item folder. |
item_reference | Path to the item, upgrade, if any. |
maximum_price | the maximum price which we cant go any more expensive, usually dont need to set this if change price is 0 or negative |
minimum_price | the minimum price which we cant go any cheaper usually dont need to set this if change price is 0 or positive |
name | unique to every upgrade. not the name of the item. name of the upgrade |
upgrade_type | In which tab the upgrade should be. |
value_upgrade | the price of the upgrade, refer to this: 500 is a runner, 8k is queen. T3 is usually 3k, woyer is 2k. |
Procs | |
on_purchase | gets called once the product is purchased, override if you need to pass any special arguments or have special behavior on purchase. |
Var Details
behavior

which behavior should this type follow. Should this be completely excluded from the buy menu? should it be one of the dropdown options? or a normal item?
change_purchase

The change of price for item per purchase, recommended for mass producing stuff or limited upgrade.
clearance_req

Clearance requirment to buy this upgrade. 5x is level 6. Why is it not that way? no one knows.
desc

name of upgrades, not items. Items are at research_upgrades.dm somewhere in item folder.
item_reference

Path to the item, upgrade, if any.
maximum_price

the maximum price which we cant go any more expensive, usually dont need to set this if change price is 0 or negative
minimum_price

the minimum price which we cant go any cheaper usually dont need to set this if change price is 0 or positive
name

unique to every upgrade. not the name of the item. name of the upgrade
upgrade_type

In which tab the upgrade should be.
value_upgrade

the price of the upgrade, refer to this: 500 is a runner, 8k is queen. T3 is usually 3k, woyer is 2k.
Proc Details
on_purchase
gets called once the product is purchased, override if you need to pass any special arguments or have special behavior on purchase.