2021-11-27 22:52:47 +00:00
|
|
|
%import textio
|
2021-12-03 23:07:21 +00:00
|
|
|
%zeropage basicsafe
|
2021-12-04 14:27:54 +00:00
|
|
|
%option no_sysinit
|
2021-10-27 21:48:02 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2021-11-09 23:17:56 +00:00
|
|
|
sub start() {
|
2021-12-05 20:54:46 +00:00
|
|
|
ubyte @shared bb
|
2021-12-05 20:28:31 +00:00
|
|
|
|
2021-12-06 20:43:17 +00:00
|
|
|
if bb + sin8u(bb) > 100-bb {
|
|
|
|
bb++
|
2021-12-05 20:28:31 +00:00
|
|
|
}
|
2021-12-06 20:43:17 +00:00
|
|
|
|
|
|
|
while bb + sin8u(bb) > 100-bb {
|
|
|
|
bb++
|
|
|
|
}
|
|
|
|
|
|
|
|
do {
|
|
|
|
bb++
|
|
|
|
} until bb + sin8u(bb) > 100-bb
|
|
|
|
|
|
|
|
const ubyte EN_TYPE=2
|
|
|
|
uword eRef = $c000
|
|
|
|
ubyte chance = rnd() % 100
|
|
|
|
|
|
|
|
if eRef[EN_TYPE] and chance < (eRef[EN_TYPE] << 1) {
|
|
|
|
bb++
|
|
|
|
}
|
|
|
|
|
2021-12-05 20:28:31 +00:00
|
|
|
}
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|