CreatureFunction
in package
Table of Contents
- $cache : mixed
- $dispatcher : mixed
- $repository : CreaturesRepository
- $response : mixed
- $settings : mixed
- $translator : mixed
- __construct() : mixed
- buffBadguy() : array<string|int, mixed>
- Buff creature for optimize to character stats.
- getCreatureAttack() : mixed
- getCreatureDefense() : mixed
- getCreatureHitpoints() : mixed
- getCreatureSpeed() : mixed
- getCreatureStats() : mixed
- lotgdGenerateCreatureLevels() : array<string|int, mixed>
- Generate a base creature stats Can use for generated your own creatures in your modules.
- lotgdGenerateDoppelganger() : array<string|int, mixed>
- Generate a dummy creature Doppelganger.
- lotgdSearchCreature() : array<string|int, mixed>
- Search for creature in data base.
- lotgdShowDebugCreature() : mixed
- lotgdTransformCreature() : array<string|int, mixed>
- Transform creature to adapt to player.
Properties
$cache
private
mixed
$cache
$dispatcher
private
mixed
$dispatcher
$repository
private
CreaturesRepository
$repository
$response
private
mixed
$response
$settings
private
mixed
$settings
$translator
private
mixed
$translator
Methods
__construct()
public
__construct(EventDispatcherInterface $dispatcher, Response $response, CacheInterface $cache, EntityManagerInterface $repository, TranslatorInterface $translator, Settings $settings) : mixed
Parameters
- $dispatcher : EventDispatcherInterface
- $response : Response
- $cache : CacheInterface
- $repository : EntityManagerInterface
- $translator : TranslatorInterface
- $settings : Settings
Return values
mixed —buffBadguy()
Buff creature for optimize to character stats.
public
buffBadguy(mixed $badguy[, string $hook = 'buffbadguy' ]) : array<string|int, mixed>
Parameters
- $badguy : mixed
- $hook : string = 'buffbadguy'
-
Hook to activate when buff badguy
Return values
array<string|int, mixed> —getCreatureAttack()
public
getCreatureAttack(mixed $attrs) : mixed
Parameters
- $attrs : mixed
Return values
mixed —getCreatureDefense()
public
getCreatureDefense(mixed $attrs) : mixed
Parameters
- $attrs : mixed
Return values
mixed —getCreatureHitpoints()
public
getCreatureHitpoints(mixed $attrs) : mixed
Parameters
- $attrs : mixed
Return values
mixed —getCreatureSpeed()
public
getCreatureSpeed(mixed $attrs) : mixed
Parameters
- $attrs : mixed
Return values
mixed —getCreatureStats()
public
getCreatureStats(mixed $dk) : mixed
Parameters
- $dk : mixed
Return values
mixed —lotgdGenerateCreatureLevels()
Generate a base creature stats Can use for generated your own creatures in your modules.
public
lotgdGenerateCreatureLevels([int|null $level = null ]) : array<string|int, mixed>
Parameters
- $level : int|null = null
-
Level of creature
Return values
array<string|int, mixed> —lotgdGenerateDoppelganger()
Generate a dummy creature Doppelganger.
public
lotgdGenerateDoppelganger(int $level) : array<string|int, mixed>
Parameters
- $level : int
Return values
array<string|int, mixed> —lotgdSearchCreature()
Search for creature in data base.
public
lotgdSearchCreature(int $multi, int $targetlevel, int $mintargetlevel[, bool $packofmonsters = false ][, bool|null $forest = true ]) : array<string|int, mixed>
Parameters
- $multi : int
- $targetlevel : int
- $mintargetlevel : int
- $packofmonsters : bool = false
-
For diferent or same creatures
- $forest : bool|null = true
-
TRUE for creature of forest, FALSE for graveyard and NULL for none
Return values
array<string|int, mixed> —lotgdShowDebugCreature()
public
lotgdShowDebugCreature(iteratable<string|int, mixed> $badguy) : mixed
Parameters
- $badguy : iteratable<string|int, mixed>
Return values
mixed —lotgdTransformCreature()
Transform creature to adapt to player.
public
lotgdTransformCreature(array<string|int, mixed> $badguy[, bool $debug = true ]) : array<string|int, mixed>
Parameters
- $badguy : array<string|int, mixed>
-
Data of creature
- $debug : bool = true
-
Show or not debug of creature