[Utility] Combinations

If you liked this item, please rate it up on Steam Workshop page.

Author: Lex Looter

Last revision: 19 Apr at 07:09 UTC

File size: 31.93 KB

On Steam Workshop

Description:

Hello!

This is a utility mod, so it does nothing on its own. It contains the code to make a combo pack, which is an alternative way to obtain new items and/or weapons.
Please read all the details. I’ve also included some instructions if you want to create your own pack.

Details

Upon pickup of the combo, the icon of the combo will show up on the top right corner, alongside crates
The combo’s will be processed at the end of the wave, before the processing of crates
All combo’s are unique
Combo’s will not be attracted to you at the end of the wave
If you don’t want the combo, it’s possible to not take it. However, it’ll stay in the pool of potential drops, so it might show up again the next wave. (I can imagine this potentially being annoying, especially for endless runs, so I’m considering having declined combo’s blocked for the next X wave(s))

Details combo Items

A combo item could spawn if you meet the requirements by owning the 2 to 4 specific items, with the option to keep one of the items
Upon obtaining the combo item, you lose the required items (unless stated otherwise)
Each combo item has their own base spawn chance
The chance for a combo item to drop is triggered when:

  • An enemy dies – 10% of base chance
  • Every 5 seconds – 100% of base chance
  • On level-up – 400% of base chance

Only 1 combo item can be spawned at any given time
There’s a cooldown of 2 seconds after picking up a combo, before the next combo can spawn

Details combo Weapons

A combo weapon spawns at the start of the wave if you meet the requirements by owning the 2 specific weapons (of any tier)
Only 1 combo weapon can be spawned per wave
Getting a combo weapon allows you to find that weapon in the shop (only for the current run)
(this can sometimes be tricky to obtain and then you’d still want to buy the combo weapons. I’m considering some options to improve on this Next update: The combo weapon will be guaranteed to show up once in the next shop)

Instructions Pack creators

For combo items:
Unlocked by default should be off (I hope this is obvious)
Tier needs to be Danger 4
The first effect should always be the "combination_item_effect.gd", found in: content/effects/
The Key of the first effect should be "item_combination" and Text_Key should be "EFFECT_ITEM_COMBINATION" when the combo requires 2 items, "EFFECT_ITEM_COMBINATION_3" for 3 items and "EFFECT_ITEM_COMBINATION_4" if the combo requires 4 items.
Base spawn chance can be set between 1-100, but I recommend not having it higher than 25 (which would already be a guaranteed spawn on level-up)

For combo weapons:
Unlocked by default should be off
Tier needs to be Danger 5
The first effect should always be the "combination_weapon_effect.gd", found in: content/effects/
The Key of the first effect should be "weapon_combination" and Text_Key should be "EFFECT_WEAPON_COMBINATION"

This has not been tested with many mods, so I appreciate any and all feedback.

You can find my own combo pack here: Combo Pack Lex
Feel free to use that as an example to create your own pack.

Please don’t hesitate to leave a comment if you have any questions.

Cheers,
Lex

Download
Required items:

Click the title to search on this site.


Brotils [Utility]Steam Workshop
ContentLoader [Utility]Steam Workshop