adjust width/height based on size

This commit is contained in:
Kent Rasmussen
2025-12-26 15:10:59 +09:00
parent b68f3fd780
commit ddd80b9fd3
+4
View File
@@ -11233,6 +11233,10 @@ function new_monster(instance, map_def, args) {
} else {
monster.width = monster.height = 24;
}
if (G.monsters[monster.type].size) {
monster.width = Math.round(monster.width * G.monsters[monster.type].size);
monster.height = Math.round(monster.height * G.monsters[monster.type].size);
}
set_base(monster);
if (map_def.random) {