mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-25 14:10:13 -05:00
Styling fixes
This commit is contained in:
@@ -1807,7 +1807,7 @@ function spawn_special_monster(type) {
|
|||||||
new_monster(pack.i, pack);
|
new_monster(pack.i, pack);
|
||||||
// broadcast("game_event",{name:"goldenbat",map:pack.i});
|
// broadcast("game_event",{name:"goldenbat",map:pack.i});
|
||||||
}
|
}
|
||||||
if (type == "goldenbot") {
|
if (type == "goldenbot") {
|
||||||
var packs = [];
|
var packs = [];
|
||||||
["uhills"].forEach(function (m) {
|
["uhills"].forEach(function (m) {
|
||||||
G.maps[m].monsters.forEach(function (p) {
|
G.maps[m].monsters.forEach(function (p) {
|
||||||
@@ -2088,7 +2088,7 @@ function event_loop() {
|
|||||||
spawn_special_monster("goldenbat");
|
spawn_special_monster("goldenbat");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (events.goldenbot && (stats.kills.targetron + stats.kills.sparkbot) > edges.next_goldenbot) {
|
if (events.goldenbot && stats.kills.targetron + stats.kills.sparkbot > edges.next_goldenbot) {
|
||||||
edges.next_goldenbot += parseInt(events.goldenbot * Math.random());
|
edges.next_goldenbot += parseInt(events.goldenbot * Math.random());
|
||||||
spawn_special_monster("goldenbot");
|
spawn_special_monster("goldenbot");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user