You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess is this gets fixed in a later chapter, but it would be nice if that was mentioned here. If this wasn't intentional, I think either adding something like weapon.proc_target = Some("Target".to_string()); to rawmaster.rs or changing the line in melee_combat_system.rs to use unwrap_or_default() would fix this.
The text was updated successfully, but these errors were encountered:
This line seems to crash the game if the player uses "weapon trait" generated weapons:
rustrogueliketutorial/chapter-69-mushrooms2/src/melee_combat_system.rs
Line 128 in 33872fe
There doesn't seem to be anywhere that sets the correct
proc_target
in the generation code:rustrogueliketutorial/chapter-69-mushrooms2/src/raws/rawmaster.rs
Lines 160 to 186 in 33872fe
My guess is this gets fixed in a later chapter, but it would be nice if that was mentioned here. If this wasn't intentional, I think either adding something like
weapon.proc_target = Some("Target".to_string());
to rawmaster.rs or changing the line in melee_combat_system.rs to useunwrap_or_default()
would fix this.The text was updated successfully, but these errors were encountered: