Skip to content

Add a way to set default monster values #20

@soul4soul

Description

@soul4soul

Often times information is missing from creature files. A new monster is created with some default values to fill in the gaps and make the conversion work better especially when moving between formats of different systems where values don't match exactly for example TibiaWiki to TFS. TibiaWiki has no concept of StaticAttack so a default value is needed.

Instead of hard coding these values they should be made available as input so they can be set by the user. See monsters.cs for the current hard coded values

public Monster()
{
Voices = new List<Voice>();
MaxSummons = 0;
Summons = new List<Summon>();
Items = new List<Loot>();
LookTypeDetails = new DetailedLookType();
Attacks = new List<Spell>();
SummonCost = 0;
Attackable = true;
Hostile = true;
Illusionable = false;
ConvinceCost = 0;
Pushable = false;
PushItems = false;
PushCreatures = false;
TargetDistance = 1;
StaticAttack = 95;
LightLevel = 0;
LightColor = 0;
RunOnHealth = 0;
IsBoss = false;
HideHealth = false;
AvoidFire = true;
AvoidEnergy = true;
AvoidPoison = true;
// Immunities
IgnoreParalyze = false;
IgnoreInvisible = false;
IgnoreDrunk = false;
IgnoreOutfit = false;
// Defences
TotalArmor = 10;
Shielding = 5;
// Elements
Fire = 1;
Earth = 1;
Energy = 1;
Ice = 1;
Holy = 1;
Death = 1;
Physical = 1;
Drown = 1;
LifeDrain = 1;
ManaDrain = 1;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions