mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-02-22 15:17:57 +01:00
Now the mob level will be also be set properly to match player's on load.
This commit is contained in:
parent
1299b928b2
commit
819371fd73
@ -24,8 +24,6 @@ class_name PlayerGD
|
|||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
if Input.is_action_just_pressed("sheath"):
|
if Input.is_action_just_pressed("sheath"):
|
||||||
get_character_skeleton().toggle_sheath()
|
get_character_skeleton().toggle_sheath()
|
||||||
|
@ -278,6 +278,8 @@ func load_character(file_name : String) -> void:
|
|||||||
#TODO hack, do this properly
|
#TODO hack, do this properly
|
||||||
_player.set_physics_process(false)
|
_player.set_physics_process(false)
|
||||||
|
|
||||||
|
mob_level = _player.clevel
|
||||||
|
|
||||||
set_player(_player.get_body())
|
set_player(_player.get_body())
|
||||||
|
|
||||||
Server.sset_seed(_player.sseed)
|
Server.sset_seed(_player.sseed)
|
||||||
|
Loading…
Reference in New Issue
Block a user