Gaming
 

Tree

From Neverend

There are three types of generic trees:

  • Fruit trees
  • Wood trees
  • Exotic trees

Trees have a flag for appearance (model and texture), but still fit the properties of one of three tree types.

Fruit trees are depend on the type of fruit chosen. Fruit will show itself on the tree branches, can be picked, and can fall off on the ground. When a fruit type is selected, that tree is "locked" in to that fruit type, never to change, which prevents a fruit tree from having apples and bananas at the same time.

Typical fruit includes apples, oranges, bananas, etc. Realm specific fruit includes pomegranate, soy beans, etc. Non-typical fruit can include gems, ores, stones, various fantasy fruit such as exploding fruit, poison fruit, or aphordisiac fruit. These types of fruit are far more rare, are often limited to a specific region or an NPC grower, or require rare magical enchantments or other circumstances in order for them to exist.

Fruit trees grow in the wild by producing trees along a square perimeter. When a spot for a tree is found, not occupied by rocks or buildings, and having flat terrain, then the fully adult space for that tree is reserved, preventing other trees from occupying the same space.

Trees have a minimum distance to keep from each other, and a random interval along their "perimeter" to prevent a square effect. The only time the placement is not random is when trees are kept in a fence, making an "orchard" area. In an orchard, the perimeter square creates new trees at the center points of each side of the "box" around each tree, as long as there are no trees, rocks, sloped land, fences, or buildings occupying that space.

If land loses its orchard status by having its fence destroyed completely, then trees will grow in their normal "random" intervals.

Fruit trees also have leaves, and bare/fruitless branches during the winter.

Wood trees are the most common trees, and proliferate faster than fruit trees. They start from saplings, go young adults, adults, and elder trees. much like fruit trees, they are "chosen" at birth to be a certain type of wood, which may have a slightly different color and different leaves.

Common wood types include yew, pine, spruce, maple, etc. Each type has several models chosen at random on birth, to prevent lookalike trees next to each other.

Exotic trees are the last time, and are found in special locations, jungles, and in quests or in nature based communities. These are often "doodad" objects that are more like scenery. They may have unique properties and rules, but most are there to look pretty.

Trees can all be destroyed in the following ways:

Chopped- the tree dies and uses a falling over animation, then turns into a stump (which deteriorates until leaving the world) and "fallen tree," which is a very large item. A fallen tree can be further cut with axes to destroy it and turn it into logs, or it can be hauled in a large cart or wagon. Some huge monsters may be able to wield or toss fallen trees.

Splintered- the tree takes damage from physical attacks until it has no HP remaining. The tree appears to break or explode, leaving behind debris. Debris quickly detereorates and is gone.

Burnt- the tree is on fire, from spells, items, or from nearby fire. If the fire is doused, the tree will look charred and dead. If the tree reaches 0 HP, it will have a "burnt to death" animation. When on fire, new fires tend to catch on closeby trees, plants, bushes, and buildings.

Standing too close to a fire will cause fire damage.

Wood, plant, and cloth based items will burn and be destroyed, unless some form of magic is protecting them.