Commit graph

17 commits

Author SHA1 Message Date
Erik Ogenvik
2bbbad4c58 Restructure and add "present" properties.
Also make sure that the correct geometry is used whenever possible.
2018-02-20 22:26:27 +01:00
Erik Ogenvik
9bc54bca52 Reorganize and add "present-" properties.
The ambition is to have "present-" properties for all types.
2018-02-15 12:39:34 +01:00
Erik Ogenvik
6ea1fb6ffe Sync types with media. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
99640d26aa Use a left hand coord system. 2018-02-06 13:45:10 +01:00
Erik Ogenvik
0286bcd47d Replace "parents" with "parent". 2017-07-24 15:05:18 +02:00
Erik Ogenvik
c025cee692 Added a max size property.
When scaling plants, they are scaled using their bbox if they have a
density. The "maxsize" property limits their max size.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
fd34c235e4 Remove "transforms" and "modespec" property.
These properties didn't work out when we moved to a physics based world.
Instead we've introduced the properties "planted-offset" and "planted-scaled-offset".
These properties takes a float and specified vertical offset for planted entities.

Likewise with "planted-rotation" which specifies a rotation applied for planted entities.
"active-rotation" keeps track of any applied rotation.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
4f496cd9dc Make apples round. 2016-12-15 18:27:42 +01:00
Erik Ogenvik
c7a41c39f9 Added density to most types.
Which should be ok for most ones, but could need some adjustments.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
9234b7a34b Fixed incorrect orientation for planted tubers. 2016-06-27 00:00:21 +02:00
Erik Ogenvik
d8996f0500 Provide correct transforms for tubers and trees. 2016-06-26 20:17:18 +02:00
Erik Ogenvik
12a38b3d0f Added a mode specification property.
This property tells how the entity should behave when put into
different modes. Currently we only allow for specific transformations
to occur.

The mode specifications are registed in properties where "mode-" forms
a prefix, and the mode a suffix. For example, "mode-planted".
This also does away with the "plantable" property.
2016-06-26 20:17:18 +02:00
Erik Ogenvik
b4efec1524 Rotate planted carrots and turnips. 2016-06-26 19:08:54 +02:00
Erik Ogenvik
8d7a0b13f7 Added plantable info to carrots and turnips. 2016-06-26 19:08:54 +02:00
Erik Ogenvik
d994de3705 Added plantable properties for the oaks. 2016-06-26 19:03:19 +02:00
Erik Ogenvik
db78185f8a Rewrote how plant fruiting works.
The object was to make it easier to follow, and to also remove fruit
spamming.
The attribute "fruitsMax" now denotes the maximum number of fruits in
the plant at any given time.
"fruitsChance" now denotes a percentage, i.e. [0, 100]. The closer to
100 the greater the chance of a fruit being created or dropped each
tick.
The existing fruiting entities were also altered to make them produce
less fruits, to prevent spamming.
2015-04-08 19:16:54 +02:00
Erik Ogenvik
2dca4949ed Created "deeds" ruleset and made it default.
It's currently a copy of the Mason ruleset.
Where Mason focuses on letting the users create the world themselves,
Deeds instead focuses on allowing world authors to set up enticing
worlds with gameplay and stories. In contrast to Mason there are more
features available to the world authors which allow for automatic
creation of entities and so on.
2013-11-15 21:14:47 +01:00
Renamed from data/plants.xml (Browse further)