mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-25 22:20:13 -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 {
|
} else {
|
||||||
monster.width = monster.height = 24;
|
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);
|
set_base(monster);
|
||||||
|
|
||||||
if (map_def.random) {
|
if (map_def.random) {
|
||||||
|
|||||||
Reference in New Issue
Block a user