1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-03-23 10:29:18 +00:00

ArmsItem.tsc is loaded ONLY in inventory lol

This commit is contained in:
Alula 2020-09-10 14:09:44 +02:00
parent 74e4c79cc2
commit 124f793e4c
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -28,10 +28,8 @@ impl Scene for LoadingScene {
let npc_table = NPCTable::load_from(filesystem::open(ctx, [&state.base_path, "/npc.tbl"].join(""))?)?;
state.npc_table = npc_table;
let head_script = TextScript::load_from(filesystem::open(ctx, [&state.base_path, "/Head.tsc"].join(""))?)?;
let arms_item_script = TextScript::load_from(filesystem::open(ctx, [&state.base_path, "/ArmsItem.tsc"].join(""))?)?;
state.textscript_vm.set_global_script(head_script);
state.textscript_vm.append_global_script(arms_item_script);
let mut next_scene = GameScene::new(state, ctx, 13)?;
next_scene.player.x = 10 * 16 * 0x200;
next_scene.player.y = 8 * 16 * 0x200;