Now the mob level will be also be set properly to match player's on load.

This commit is contained in:
Relintai 2020-08-03 22:05:35 +02:00
parent 1299b928b2
commit 819371fd73
2 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,6 @@ class_name PlayerGD
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
func _process(delta):
if Input.is_action_just_pressed("sheath"):
get_character_skeleton().toggle_sheath()

View File

@ -278,6 +278,8 @@ func load_character(file_name : String) -> void:
#TODO hack, do this properly
_player.set_physics_process(false)
mob_level = _player.clevel
set_player(_player.get_body())
Server.sset_seed(_player.sseed)