Renamed the root package to fmon and added paralysis, burn, and sleep status effects
This commit is contained in:
23
FakeMon/src/fmon/stat/package.scala
Normal file
23
FakeMon/src/fmon/stat/package.scala
Normal file
@@ -0,0 +1,23 @@
|
||||
package fmon
|
||||
|
||||
import scala.language.implicitConversions
|
||||
|
||||
import org.json4s.DefaultFormats
|
||||
import org.json4s.ext.EnumNameSerializer
|
||||
|
||||
import scala.util.Random
|
||||
|
||||
import fmon.util.Dice
|
||||
|
||||
package object stat {
|
||||
type Stat = Statistic.Value
|
||||
type MoveType = MoveType.Value
|
||||
type Gender = Gender.Value
|
||||
type Nature = Nature.Val
|
||||
type Target = Target.Value
|
||||
type XpCurve = XpCurve.Val
|
||||
|
||||
implicit val formats = DefaultFormats + new EnumNameSerializer(MoveType) + new EnumNameSerializer(Gender)
|
||||
implicit def rngDice(rng : Random) = new Dice(rng)
|
||||
implicit def ptrToMonster(ptr : MonsterPtr) : Monster = ptr.mon
|
||||
}
|
||||
Reference in New Issue
Block a user