fix(game): restore the six-way effect target
Implement the flagged object-84 selector and initially inactive type-4 object 149. Choose a different effect from 1-6, render the enabled target from its original active-table rectangle, award its static 500 points, then apply the recovered bonus or cashout action and disable it until reselected. This replaces the final unimplemented help-screen target effect with its original dispatcher values. Test Plan: - `cargo test --all-targets` -- 49 passed - `cargo clippy --all-targets -- -D warnings` -- passed - `cargo build --profile production` -- passed - live object-84 probe activated record 149 and selected effect 3 - effect selection/consumption test -- passed - `git diff --cached --check` -- passed
This commit is contained in:
@@ -429,6 +429,20 @@ impl App {
|
||||
);
|
||||
}
|
||||
}
|
||||
if game.effect_target_active() {
|
||||
let region = Rect::new(60.0, 57.0, 18.0, 17.0);
|
||||
draw_texture_ex(
|
||||
&self.assets.active_table,
|
||||
region.x,
|
||||
region.y,
|
||||
WHITE,
|
||||
DrawTextureParams {
|
||||
dest_size: Some(vec2(region.w, region.h)),
|
||||
source: Some(region),
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
}
|
||||
if game.ball.in_launcher {
|
||||
draw_texture_ex(
|
||||
&self.assets.plunger,
|
||||
|
||||
Reference in New Issue
Block a user