mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
adjust width/height based on size
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user