Initial inventory Items

The object GameManager located inside the HECommon prefab contains a list of the initial items available in the game.

Untitled

You also have a field available to specify the initial weapon and the ammo available in it.

Extendable Inventory Combinations

Items can be combined in the inventory screen. The more common combinations in this kind of games are Weapon/Ammo reload and 2 Items merging into a different one. For that reason the engine provides an easy way of creating these.

Bear in mind that any reloadable weapon will be able to reload with its designated ammo by default, without the need of creating a specific combination. We can however create extra weapon/ammo combinations for a specific weapon.

The game comes with 2 examples of each: Combination_GunReload and Combination_PlantMerge

You can create new ones from the Project View with right click Create/Horror Engine/Combinations

https://lh4.googleusercontent.com/FX5ZSD8aT_MDZQ8PJ9Bop-XuyS8PeXSp-kRVbj-nFAen-Q_Bl8yHE45-OK-TCNIldwQtIlEnsvBbjB4isZfw_GUTYQJLYeoO1Id1RlrEqfEOTUEjzHt50Wcib32h6zvvIhnjJtW84uaSyXuojvQAF_6lqY9JiMB-EwDtw4MkY1d89JS2jUtpujCtNw

On these Scriptable Objects you can specify the objects that contribute to the combination (Item 1 and Item 2) and in the case of Merge you can specify the resulting object along with the amount of created or consumed items by the combination.

Finally, the new combination object has to be added to the Inventory/Combinations list on GameManager object located inside the HECommon prefab.

https://lh5.googleusercontent.com/hVALCU6hjyhOF6tcv_pHLmgiHnXu3bHxE1_V3a8dNCKLcOBdGyX3RqZB5M5c9GG5wGq8yR8x85AFkGps14xKAE8_aEnfgOYYpVEuOJKxQiIJ1pLp1JnY-Ob1JZnSWb1X1NNAttZhh2q54I89jS0TXqwwUFAkoh1TWdi0-W9U9abwQaxXh9NPL3SsFg

You can create new inventory combinations by creating a new class inheriting

InventoryItemCombination

and implementing the method