Skip to content

Commit

Permalink
Merge pull request #1 from Tobirg/master
Browse files Browse the repository at this point in the history
Change minimum delay
  • Loading branch information
xMasterX authored Dec 4, 2022
2 parents fb27ed2 + 2f4ab00 commit 91a8a5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scene/ibtnfuzzer_scene_run_attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ uint8_t id_list_cyfral[14][2] = {
};

void ibtnfuzzer_scene_run_attack_on_enter(iBtnFuzzerState* context) {
context->time_between_cards = 10;
context->time_between_cards = 8;
context->attack_step = 0;
context->key = ibutton_key_alloc();
context->worker = ibutton_worker_alloc();
Expand Down Expand Up @@ -362,7 +362,7 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
break;
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 8) {
if(context->time_between_cards > 4) {
context->time_between_cards--;
}
}
Expand Down Expand Up @@ -408,8 +408,8 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
switch(event.key) {
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 8) {
if((context->time_between_cards - 10) > 8) {
if(context->time_between_cards > 4) {
if((context->time_between_cards - 10) > 4) {
context->time_between_cards -= 10;
}
}
Expand Down

0 comments on commit 91a8a5b

Please sign in to comment.