Table of Contents

Class ElementalTypeExtension

Namespace
Nekoyume.Model.Elemental
Assembly
Lib9c.dll
public static class ElementalTypeExtension
Inheritance
ElementalTypeExtension
Inherited Members

Fields

WinMultiplier

public const decimal WinMultiplier = 1.2

Field Value

decimal

Methods

GetAllTypes()

public static List<ElementalType> GetAllTypes()

Returns

List<ElementalType>

GetBattleResult(ElementalType, ElementalType)

public static ElementalResult GetBattleResult(this ElementalType from, ElementalType to)

Parameters

from ElementalType
to ElementalType

Returns

ElementalResult

1: Win 0: Draw -1: Lose

GetDamage(ElementalType, ElementalType, long)

public static long GetDamage(this ElementalType from, ElementalType to, long damage)

Parameters

from ElementalType
to ElementalType
damage long

Returns

long

GetMultiplier(ElementalType, ElementalType)

public static decimal GetMultiplier(this ElementalType from, ElementalType to)

Parameters

from ElementalType
to ElementalType

Returns

decimal

TryGetLoseCase(ElementalType, out ElementalType)

public static bool TryGetLoseCase(this ElementalType lose, out ElementalType win)

Parameters

lose ElementalType
win ElementalType

Returns

bool

TryGetWinCase(ElementalType, out ElementalType)

public static bool TryGetWinCase(this ElementalType win, out ElementalType lose)

Parameters

win ElementalType
lose ElementalType

Returns

bool