Installera Steam
logga in
|
språk
简体中文 (förenklad kinesiska)
繁體中文 (traditionell kinesiska)
日本語 (japanska)
한국어 (koreanska)
ไทย (thailändska)
Български (bulgariska)
Čeština (tjeckiska)
Dansk (danska)
Deutsch (tyska)
English (engelska)
Español - España (Spanska - Spanien)
Español - Latinoamérica (Spanska - Latinamerika)
Ελληνικά (grekiska)
Français (franska)
Italiano (italienska)
Bahasa Indonesia (indonesiska)
Magyar (ungerska)
Nederlands (nederländska)
Norsk (norska)
Polski (polska)
Português (Portugisiska – Portugal)
Português - Brasil (Portugisiska - Brasilien)
Română (rumänska)
Русский (ryska)
Suomi (finska)
Türkçe (turkiska)
Tiếng Việt (vietnamesiska)
Українська (Ukrainska)
Rapportera problem med översättningen
I think it would be better if the bat spawn had a chance of happening, rather than being triggered every time. For example, a 1.0% chance of bats spawning each time you enter or exit a cave. This way, players might have a chance at being surprised instead of expecting it every time.
I understand that the game developers may have intended the bat spawn to be a scare tactic, but when you have to go in and out of caves multiple times to gather resources, it becomes really obvious and loses its impact. Adding some randomness to the bat spawn would make it more effective in my opinion.
What do you guys think? Have you also noticed the repetitive bat spawn in the game? Would you like to see it randomized? Let's discuss in the comments.
here's some sample code that could fix it:
using System;
public class BatSpawn
{
private const int BAT_SPAWN_CHANCE = 1; // percentage chance of bats spawning
public static void Main()
{
// simulate entering or exiting a cave
bool enteredCave = true; // set to true if entering, false if exiting
// check if bats spawn
bool batsSpawned = CheckBatSpawn();
if (batsSpawned)
{
// play bat sound effect and show bats flying out of cave
PlayBatSound();
ShowBatsFlying();
}
else
{
// do nothing, no bats spawned this time
}
}
private static bool CheckBatSpawn()
{
// generate random number between 1 and 100
Random rand = new Random();
int randomNumber = rand.Next(1, 101);
// check if random number is within bat spawn chance
if (randomNumber <= BAT_SPAWN_CHANCE)
{
return true; // bats spawn
}
else
{
return false; // bats don't spawn
}
}
private static void PlayBatSound()
{
// play bat sound effect here
Console.WriteLine("Bats are flying out of the cave!");
}
private static void ShowBatsFlying()
{
// show bats flying out of cave animation here
Console.WriteLine("Bats are flapping their wings and flying away!");
}
}