mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:28 -05:00
fix monster dimensions
This commit is contained in:
+2
-1
@@ -11230,6 +11230,8 @@ function new_monster(instance, map_def, args) {
|
|||||||
if (G.dimensions[name]) {
|
if (G.dimensions[name]) {
|
||||||
monster.width = G.dimensions[name][0];
|
monster.width = G.dimensions[name][0];
|
||||||
monster.height = G.dimensions[name][1];
|
monster.height = G.dimensions[name][1];
|
||||||
|
} else {
|
||||||
|
monster.width = monster.height = 24;
|
||||||
}
|
}
|
||||||
set_base(monster);
|
set_base(monster);
|
||||||
|
|
||||||
@@ -11328,7 +11330,6 @@ function new_monster(instance, map_def, args) {
|
|||||||
if (mode.range_test) {
|
if (mode.range_test) {
|
||||||
monster.range = 2000;
|
monster.range = 2000;
|
||||||
}
|
}
|
||||||
monster.width = monster.height = 24;
|
|
||||||
if (args.temp) {
|
if (args.temp) {
|
||||||
monster.temp = 1;
|
monster.temp = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user