跳到主要内容
版本:Next

Class LeveledListRoll

Namespace: OblivionMp.Sdk.Serverside.Spawners
Assembly: OblivionMp.Sdk.Serverside.dll

Rolls leveled lists the way the game does.

public sealed class LeveledListRoll

Inheritance​

object ← LeveledListRoll

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

LeveledListRoll(IEntities, Random, int)​

Rolls leveled lists the way the game does.

public LeveledListRoll(IEntities entities, Random random, int levelDifferenceMax)

Parameters​

entities IEntities

random Random

levelDifferenceMax int

Fields​

EngineLevelDifferenceMax​

The game's limit on how far below the level an entry may be when a list picks from all levels.

public const int EngineLevelDifferenceMax = 8

Field Value​

int

Methods​

Roll(FormId, int, int)​

Rolls the list count times at level, resolving nested lists.

public LeveledListRollResult Roll(FormId listId, int level, int count)

Parameters​

listId FormId

level int

count int

Returns​

LeveledListRollResult