package Ġworld . greg s . void ps . world . activity . skill Ċ Ċ import Ġorg . junit . jupiter . api . Assertions .* Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġworld . greg s . void ps . engine . entity . character . contain . inventory Ċ import Ġworld . greg s . void ps . engine . entity . character . player . skill . Skill Ċ import Ġworld . greg s . void ps . engine . entity . item . Item Ċ import Ġworld . greg s . void ps . world . script . World Test Ċ import Ġworld . greg s . void ps . world . script . interface Option Ċ Ċ internal Ġclass ĠMagic Test Ġ: ĠWorld Test () Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Teleport Ġto Ġanother Ġplace `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtile Ġ= Ġempty Tile ĊĠĠĠĠĠĠĠ Ġval Ġplayer Ġ= Ġcreate Player (" magic ian ", Ġtile ) ĊĠĠĠĠĠĠĠ Ġplayer . experience . set ( Skill . Magic , Ġexperience ) ĊĠĠĠĠĠĠĠ Ġplayer . inventory . add (" law _ rune ") ĊĠĠĠĠĠĠĠ Ġplayer . inventory . add (" air _ rune ", Ġ 3 ) ĊĠĠĠĠĠĠĠ Ġplayer . inventory . add (" fire _ rune ") ĊĊĠĠĠĠĠĠĠ Ġplayer . interface Option (" modern _ spell book ", Ġ" var rock _ tele port ", Ġ" Cast ") ĊĠĠĠĠĠĠĠ Ġtick If Ġ{ Ġplayer . tile Ġ== Ġtile Ġ} ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( player . inventory . isEmpty ()) ĊĠĠĠĠĠĠĠ ĠassertTrue ( player . experience . get ( Skill . Magic ) Ġ> Ġexperience ) ĊĠĠĠĠĠĠĠ Ġassert Not Equals ( tile , Ġplayer . tile ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Teleport Ġwith Ġa Ġtablet `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtile Ġ= Ġempty Tile ĊĠĠĠĠĠĠĠ Ġval Ġplayer Ġ= Ġcreate Player (" magic ian ", Ġtile ) ĊĠĠĠĠĠĠĠ Ġplayer . experience . set ( Skill . Magic , Ġexperience ) ĊĠĠĠĠĠĠĠ Ġplayer . inventory . add (" lum bridge _ tele port ") ĊĊĠĠĠĠĠĠĠ Ġplayer . interface Option (" inventory ", Ġ" container ", Ġ" Break ", Ġ 0 , ĠItem (" lum bridge _ tele port "), Ġ 0 ) ĊĠĠĠĠĠĠĠ Ġtick ( 5 ) ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( player . inventory . isEmpty ()) ĊĠĠĠĠĠĠĠ ĠassertFalse ( player . experience . get ( Skill . Magic ) Ġ> Ġexperience ) ĊĠĠĠĠĠĠĠ Ġassert Not Equals ( tile , Ġplayer . tile ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval Ġexperience Ġ= Ġ 1 4 0 0 0 0 0 0 . 0 ĊĠĠĠ Ġ} Ċ }