Legend of the Green Dragon

Extended

Table of Contents

battleHeal()  : void
Allows creatures to heal themselves or another badguy.
battleSpawn()  : void
Adds a new creature to the badguy array.

Methods

battleHeal()

Allows creatures to heal themselves or another badguy.

public battleHeal(int $amount, int $target, int $healer) : void
Parameters
$amount : int

Amount of health to be restored

$target : int

Enemy to heal (index ID of array of enemies)

$healer : int
Return values
void

battleSpawn()

Adds a new creature to the badguy array.

public battleSpawn(array<string|int, mixed> $badguy[, int|array<string|int, mixed> $creature = null ]) : void
Parameters
$badguy : array<string|int, mixed>

creature that spawn the new creature

$creature : int|array<string|int, mixed> = null

A standard badguy array. If numeric, the corresponding badguy will be loaded from the database.

Return values
void

Search results