Skip to content

Commit 9da0e45

Browse files
committed
Minor tweaks
1 parent 556ef79 commit 9da0e45

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

attack.p8

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ attack {
3535

3636
; Check if we have used all attack slots.
3737
sub full() -> bool {
38-
if active_attacks == MAX_ATTACKS
39-
return true
40-
return false
38+
return active_attacks == MAX_ATTACKS
4139
}
4240

4341
; Find free attack slot and start attack run

enemy.p8

+2-5
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,10 @@ _move_down_else
492492
; Score based on type and pattern
493493
ubyte add_scr
494494
add_scr = enemy_score[ enemyRef[EN_TYPE] ]
495+
495496
; Bonus for flight
496497
if enemyRef[EN_PAT] > 1 ; Double score when not at base line
497498
add_scr <<= 1
498-
499499
main.add_score(add_scr)
500500
return true
501501
} else {
@@ -529,10 +529,7 @@ _move_down_else
529529
; Get and map to Map from char to nibble ?
530530
ubyte nibble = convert.to_nibble( txt.getchr(tmp_x, tmp_y))
531531

532-
if nibble & bullet_nib > 0
533-
return true
534-
535-
return false
532+
return nibble & bullet_nib > 0
536533
}
537534

538535
; Random chance of dropping bomb per active enemy

0 commit comments

Comments
 (0)