mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-16 15:47:01 +00:00
Refire fix
This commit is contained in:
parent
f672ff6f24
commit
5fdd9676cb
|
@ -176,9 +176,10 @@ impl Weapon {
|
|||
self.empty_counter = self.empty_counter.saturating_sub(1);
|
||||
self.refire_timer = self.refire_timer.saturating_sub(1);
|
||||
|
||||
if player.controller.trigger_shoot() {
|
||||
if self.refire_timer > 0 {
|
||||
return;
|
||||
} else if player.controller.trigger_shoot() {
|
||||
}
|
||||
self.refire_timer = 4;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue