Plant - siggame/MegaMinerAI-14 GitHub Wiki
Attributes
-
x - The x position of the Plant
-
y - The y position of the Plant
-
owner - The owner of the plant. Owner 0 -> Player 1, Owner 1 -> Player 2
-
mutation - The "type" of plant. Corresponds to Mutation.type.
-
rads - The "health" of the plant. The closer rads is to maxRads, the stronger the plant, but the closer to death.
-
maxRads - The point at which if rads > maxRads, the plant dies.
-
range - The reach of the plant's vines. The distance from the center the plant can interact with other plants. (Can interact if the distance between the plant's centers at most the interacting plant's range)
-
strength - The strength of the plant. This value determines how effective the plant is at attacking, healing, soaking, buffing, etc.
-
minStrength - The minimum strength value this plant can ever achieve.
-
baseStrength - The default strength value of this plant. The strength will be base strength if no buffs nor debuffs are acting upon the plant.
-
maxStrength - The maximum strength value this plant can ever achieve.
-
uprootsLeft - The number of uproots this plant has left.
-
maxUproots - The maximum number of uproots this plant can perform per turn.
Functionality
- radiate(x, y) - Perform a plant operation (attacking, buffing, healing, etc.) on the plant at the given location
- uproot(x, y) - Attempt to uproot your plant to a nearby location. NOTE: The plant can only uproot and replant within the range of a single SPAWNER plant (except the bumbleweed).