mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-15 02:39:29 -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]) {
|
||||
monster.width = G.dimensions[name][0];
|
||||
monster.height = G.dimensions[name][1];
|
||||
} else {
|
||||
monster.width = monster.height = 24;
|
||||
}
|
||||
set_base(monster);
|
||||
|
||||
@@ -11328,7 +11330,6 @@ function new_monster(instance, map_def, args) {
|
||||
if (mode.range_test) {
|
||||
monster.range = 2000;
|
||||
}
|
||||
monster.width = monster.height = 24;
|
||||
if (args.temp) {
|
||||
monster.temp = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user