C.4 Enemies

Updated 2 days ago

Code

Editor

[DISCLAIMER]
This page assumes you've correctly setup Unity and followed the steps within the first two pages https://thunderstore.io/c/lethal-company/p/TeamXiaolan/DawnLib/wiki/4097-a-unity-setup/
https://thunderstore.io/c/lethal-company/p/TeamXiaolan/DawnLib/wiki/4099-b2-registering-via-unity-editor/
If you have not finished those steps, finish them and come back to this page.

Make a folder for your moon and inside it add a Registry folder.
In the registry folder right click, hover over create -> DawnLib -> Definitions -> DuskEnemyDefinition.
Setup the Namespace and Key for the enemy (code_rebirth:redwood_titan).
Fill in fields such as what SpawnTables the enemy can spawn into.
Assumes you've already made an EnemyType ScriptableObject properly, assign that into the Definition too.
If you'd like Bestiary text just fill in the text box for it.
Same for if you'd like to override the word that triggers the bestiary, default will just be the enemy's name.
Setup the weights for your enemy, there's already some defaults put in that do nothing as most values are set to 0 for additions and 1 for multipliers, remove or add whatever you'd like, but follow the format shown in the field's header.
Setup how the config would look like by disabling or keeping enabled the option for enemy spawn weights config to generate for other users to edit if they'd like.
Configs for MaxAmount of enemies and PowerLevel of enemies is automatically made and cannot be disabled currently.
Put the DuskEnemyDefinition, EnemyType and all related assets into an AssetBundle like "redwoodtitanassets".
Include this AssetBundle into the list of AssetBundles in your ContentContainer (made during the Unity Setup page).

Done!

[Remember]
You may always contact @xuxiaolan on discord, whether through the lethal modding discord or DMs for more inquires or any difficulties encountered.