mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-23 14:56:11 +00:00
Keep Crafting Table on state load (#448)
* Keep Crafting Table on state load * Better Table Reference * Use for..in loop for clearer code * Remove Crafting Table jugeeya edition
This commit is contained in:
parent
01a2c60a29
commit
c7457cf0fd
1 changed files with 14 additions and 11 deletions
|
@ -261,7 +261,10 @@ pub unsafe fn save_states(module_accessor: &mut app::BattleObjectModuleAccessor)
|
||||||
PostureModule::set_pos(module_accessor, &pos);
|
PostureModule::set_pos(module_accessor, &pos);
|
||||||
|
|
||||||
// All articles have ID <= 0x25
|
// All articles have ID <= 0x25
|
||||||
(0..=0x25).for_each(|article_idx| {
|
(0..=0x25)
|
||||||
|
// Don't remove crafting table
|
||||||
|
.filter(|article_idx| !(fighter_kind == *FIGHTER_KIND_PICKEL && *article_idx == *FIGHTER_PICKEL_GENERATE_ARTICLE_TABLE))
|
||||||
|
.for_each(|article_idx| {
|
||||||
if ArticleModule::is_exist(module_accessor, article_idx) {
|
if ArticleModule::is_exist(module_accessor, article_idx) {
|
||||||
let article: u64 = ArticleModule::get_article(module_accessor, article_idx);
|
let article: u64 = ArticleModule::get_article(module_accessor, article_idx);
|
||||||
let article_object_id =
|
let article_object_id =
|
||||||
|
|
Loading…
Add table
Reference in a new issue