Legend of the Green Dragon

functions.php

Table of Contents

battle_player_attacks()  : bool
Battle: attack of player.
battle_badguy_attacks()  : bool
Battle: attack of badguy.
battlevictory()  : mixed
Function to show result of victory battle.
battlegainexperienceforest()  : mixed
Process win experiencie in battle win in forest.
battlegainexperiencegraveyard()  : mixed
Process win experiencie in battle win in graveyard.
battledefeat()  : mixed
Function to show result of defeated battle.
battleshowresults()  : mixed
Show result of.

Functions

battle_player_attacks()

Battle: attack of player.

battle_player_attacks() : bool

battle_badguy_attacks()

Battle: attack of badguy.

battle_badguy_attacks() : bool

battlevictory()

Function to show result of victory battle.

battlevictory(array<string|int, mixed> $enemies[, bool $denyflawless = false ][, bool $forest = true ]) : mixed
Parameters
$enemies : array<string|int, mixed>
$denyflawless : bool = false
$forest : bool = true

battlegainexperienceforest()

Process win experiencie in battle win in forest.

battlegainexperienceforest() : mixed

battlegainexperiencegraveyard()

Process win experiencie in battle win in graveyard.

battlegainexperiencegraveyard() : mixed

battledefeat()

Function to show result of defeated battle.

battledefeat(array<string|int, mixed> $enemies[, string|false $where = 'forest' ][, bool $candie = true ][, bool $lostexp = true ][, bool $lostgold = true ]) : mixed
Parameters
$enemies : array<string|int, mixed>
$where : string|false = 'forest'
$candie : bool = true

Can die in battle?

$lostexp : bool = true

Lost exp when die in battle?

$lostgold : bool = true

Lost gold when die in battle?

battleshowresults()

Show result of.

battleshowresults(array<string|int, mixed> $lotgdBattleContent) : mixed
Parameters
$lotgdBattleContent : array<string|int, mixed>

Search results