|
RpgGame
Console Based RPG game in C#
|
Spawns treasure items (coins and gold) at random locations in the dungeon. More...
Public Member Functions | |
| AddItemsProcedure (int CoinCount=5, int GoldCount=2, int PotionCount=2, int ThornCount=1) | |
| Initializes the items spawning procedure. | |
| async Task | ApplyAsync (Level level, DungeonContext context) |
| Applies the item spawning to the level. | |
Spawns treasure items (coins and gold) at random locations in the dungeon.
This procedure places coins and gold piles at random walkable positions throughout the level, giving the player opportunities to collect valuable items.
|
inline |
Initializes the items spawning procedure.
| CoinCount | The number of coins to spawn. Defaults to 5. |
| GoldCount | The number of gold piles to spawn. Defaults to 2. |
| PotionCount | The number of potions to spawn. Defaults to 2. |
| ThornCount | The number of thorns to spawn. Defaults to 1. |
|
inline |
Applies the item spawning to the level.
| level | The level being generated. |
| context | Shared generation state. |
Implements RpgGame.Generation.IDungeonProcedure.