Difference between revisions of "Units"From Globulation2
Revision as of 08:02, 10 September 2006Note: this page is far from complete, and some of the information in it may be incorrect. Please check back later when more work has been done. Individual globs are often referred to as units. They are the creatures you guide through their lives in Globulation 2. ContentsManaging UnitsUnits have two lines of dots below them, representing their levels of hunger (in blue) and wounds (in green). Workers that are carrying a resource will also have an icon on their top-right depicting the type of resource they're carrying. By clicking on a unit, you can see more detailed information about it in the sidebar:
SpeedsUnits can only work at a certain rate. The amount of time it takes a unit to do something, like walk a pace or hit an enemy, is based on its action speed. The details of the speed system are presented here, but if you're not interested in numbers, all you really need to know is that doubling an action speed will halve the amount of time it takes - for example, a warrior with an attack speed of 2 will be able to land blows twice as fast as a warrior with an attack speed of 1. Internally, the game measures time in ticks, which are set at 40 milliseconds long. Globulation 2 doesn't have an option to increase or decrease this, but when your computer is overloaded, ticks take longer. The formula for calculating the number of ticks to complete an action is 256/s, where s is the speed of the unit. So a unit with a speed of 1 will take 256 ticks (10.24 seconds) to complete an action, speed 2 takes 128 ticks (5.12 seconds), and so on until the maximum speed (256) which takes 1 tick. Here are the speeds currently used in the game:
FoodGlobs need food to keep them going. When a glob takes lunch at an inn, it fills its stomach. A glob's stomach can hold 350 grains of wheat, and every action they take burns one grain. So, for example, a glob's stomach will always be empty after they've walked 350 paces, no matter how high their walking speed. Globs don't count as moving when they're inside a building, so don't burn any food. Globs will usually become hungry well before their stomach is empty, and refuse to do any more work until they've eaten. If they haven't managed to get to an inn by the time they run out of food, they will start to starve, losing hit points in place of food. Once they've eaten, the starving glob can visit a hospital to repair the damage. You can keep an eye on how hungry your population is with the graphs menu. Although globs only need wheat to live, they like to have some fruit in their diet, and can even be convinced to convert to another team to get more fruit. The full details are discussed in the fruit section - but basically the more fruit your globs eat, the happier they are, but the less armour warriors have. DamageUnit typesRight now, Globulation 2 supports three kinds of unit: workers, warriors, and explorers. WorkersWorkers are the backbone of glob society. Their job consists mainly of harvesting resources and applying them to buildings.
WarriorsWarriors do most of the offensive work in Globulation 2. Unless they hungry, critically injured, or following a war flag, they will attack any visible enemy unit or building within an 8x8 square of themselves. Once they're engaged in combat with an enemy, they will keep fighting until they get hungry, critically injured, or the enemy is destroyed. Warriors get hungry at 20% food.
ExplorersExplorers are currently the only flying creature in Globulation 2. They have a fairly weak attack, but they're most useful for gathering intelligence about the world.
SkillsSome buildings teach units how to improve certain skills, such as the speed they can walk or the strength of their attack. Units can upgrade one skill each time they visit a building to train, and will always improve that skill to the maximum value possible for the building. Attack strengthAttack speedLearning attack speed to level 1 will gives a warrior an attack speed of 11, level 2 gives an attack speed of 18, level 3 gives 25, level 4 gives 32. See the section on speeds for more information. Open questions
enum Abilities\\ {\\ STOP_WALK=0,\\ STOP_SWIM=1,\\ STOP_FLY=2,\\ \\ WALK=3,\\ SWIM=4,\\ FLY=5,\\ BUILD=6,\\ HARVEST=7,\\ ATTACK_SPEED=8,\\ \\ ATTACK_STRENGTH=9,\\ ARMOR=10,\\ HP=11,\\ \\ HEAL=12,\\ FEED=13\\ };
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||