Skip to content

Commit

Permalink
Adjusted unit box sizes, as they no longer need to be (1, 1) less tha…
Browse files Browse the repository at this point in the history
…n intended in order to work properly in the engine
  • Loading branch information
Andrettin committed Feb 5, 2022
1 parent 2b54f75 commit e324aa2
Show file tree
Hide file tree
Showing 24 changed files with 144 additions and 144 deletions.
12 changes: 6 additions & 6 deletions data/unit_types/bats.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
hit_points = 5
tile_width = 1
tile_height = 1
box_width = 31
box_height = 31
box_width = 32
box_height = 32
sight_range = 4
basic_damage = 2
missile = missile_none
Expand Down Expand Up @@ -69,8 +69,8 @@
hit_points = 45
tile_width = 1
tile_height = 1
box_width = 31
box_height = 31
box_width = 32
box_height = 32
sight_range = 4
basic_damage = 6
missile = missile_none
Expand Down Expand Up @@ -126,8 +126,8 @@
hit_points = 75
tile_width = 1
tile_height = 1
box_width = 31
box_height = 31
box_width = 32
box_height = 32
sight_range = 4
basic_damage = 10
armor = 2
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/buildings/celestial_bodies/asteroid.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ unit_template_asteroid = {
hit_points = 25500
draw_level = 30
tile_size = { 1 1 }
box_size = { 31 31 }
box_size = { 32 32 }
sight_range = 1
armor = 20
missile = missile_none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ unit_template_barren_dwarf_world = {
frame_size = { 64 64 }
icon = iron_barren_moon
tile_size = { 2 2 }
box_size = { 63 63 }
box_size = { 64 64 }
neutral_minimap_color = { 128 128 0 }
starting_resources = 10000
can_harvest = true
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/buildings/celestial_bodies/barren_moon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ unit_template_barren_moon = {
frame_size = { 64 64 }
icon = iron_barren_moon
tile_size = { 2 2 }
box_size = { 63 63 }
box_size = { 64 64 }
neutral_minimap_color = { 128 128 0 }
starting_resources = 10000
can_harvest = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ unit_template_barren_world = {
frame_size = { 96 96 }
icon = iron_barren_world
tile_size = { 3 3 }
box_size = { 95 95 }
box_size = { 96 96 }
neutral_minimap_color = { 128 128 0 }
starting_resources = 50000
can_harvest = true
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/buildings/celestial_bodies/gas_giant.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ unit_template_gas_giant = {
frame_size = { 96 96 }
icon = iron_barren_world
tile_size = { 3 3 }
box_size = { 95 95 }
box_size = { 96 96 }
neutral_minimap_color = { 128 128 0 }
starting_resources = 50000
can_harvest = true
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/buildings/celestial_bodies/star.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ unit_template_star = {
frame_size = { 231 231 }
icon = star
tile_size = { 4 4 }
box_size = { 127 127 }
box_size = { 128 128 }
}

unit_yellow_star = { #Class G
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/buildings/sites/building_site.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ unit_building_site = {
frame_size = { 96 96 }
icon = icon_build_basic_structure
tile_size = { 3 3 }
box_size = { 95 95 }
box_size = { 96 96 }
corpse_type = unit_destroyed_3x3_place
}
2 changes: 1 addition & 1 deletion data/unit_types/buildings/sites/major_building_site.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ unit_major_building_site = {
frame_size = { 128 128 }
icon = icon_build_basic_structure
tile_size = { 4 4 }
box_size = { 127 127 }
box_size = { 128 128 }
corpse_type = unit_destroyed_4x4_place
}
2 changes: 1 addition & 1 deletion data/unit_types/buildings/sites/minor_building_site.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ unit_minor_building_site = {
frame_size = { 64 64 }
icon = icon_build_basic_structure
tile_size = { 2 2 }
box_size = { 63 63 }
box_size = { 64 64 }
corpse_type = unit_destroyed_2x2_place
}
2 changes: 1 addition & 1 deletion data/unit_types/buildings/sites/settlement_site.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ unit_settlement_site = {
frame_size = { 128 128 }
icon = settlement_site
tile_size = { 4 4 }
box_size = { 127 127 }
box_size = { 128 128 }
corpse_type = unit_destroyed_4x4_place
variations = {
settlement_site = {
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/celestial_body_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ unit_template_celestial_body = {
name = "Celestial Body"
template = true
tile_size = { 2 2 } #default tile size
box_size = { 63 63 } #default box size
box_size = { 64 64 } #default box size
animation_set = animations_building
draw_level = 30
neutral_minimap_color = { 255 255 0 }
Expand Down
4 changes: 2 additions & 2 deletions data/unit_types/corpses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ unit_gnoll_dead_body = {
hit_points = 255
draw_level = 30
tile_size = { 1 1 }
box_size = { 31 31 }
box_size = { 32 32 }
sight_range = 1
missile = missile_none
priority = 0
Expand Down Expand Up @@ -36,7 +36,7 @@ unit_orc_dead_body = {
hit_points = 255
draw_level = 30
tile_size = { 1 1 }
box_size = { 31 31 }
box_size = { 32 32 }
sight_range = 1
missile = missile_none
priority = 0
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/resources/metal_rock_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ unit_template_metal_rock = {
hit_points = 25500
draw_level = 30
tile_size = { 1 1 }
box_size = { 31 31 }
box_size = { 32 32 }
sight_range = 1
armor = 20
missile = missile_none
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/units/aether_transport_ship.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ unit_aether_transport_ship = {
hit_points = 150
max_on_board = 6
tile_size = { 2 2 }
box_size = { 63 63 }
box_size = { 64 64 }
sight_range = 4
armor = 5
missile = missile_none
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/units/construct/clay_golem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ unit_clay_golem = {
parent = unit_template_construct_unit
description = "Golems are constructed by mages skilled in the art of transmutation, to serve as guards against would-be enemies."
tile_size = { 1 1 }
box_size = { 31 31 }
box_size = { 32 32 }
image_file = "units/construct/clay_golem.png"
frame_size = { 80 80 }
offset = { 0 6 }
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/units/fauna/wyrm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ unit_wyrm = {
quote = "\"More wyrms there are beneath the ash\nThan an unwise fool would think\"\n- Dwarven Traditional Poetry"
background = "The dragons of Norse mythology, also referred to as serpents, had different physical characteristics than the dragons of medieval folklore. The Norse dragons were wingless, and entirely or partially limbless. The most famous of them were Jormungand and Nidhogg. The <a href='literary_text:grimnismol'>Grimnismol</a> includes a list of other notable ones, Svafnir among them. The constellation Draco (\"Dragon\") represents the giant serpent of Greek mythology, Ladon."
tile_size = { 2 2 }
box_size = { 63 63 }
box_size = { 64 64 }
image_file = "neutral/units/wyrm.png"
frame_size = { 110 108 }
animation_set = animations_wyrm
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/units/hobgoblin/corpse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ unit_hobgoblin_dead_body = {
hit_points = 255
draw_level = 30
tile_size = { 1 1 }
box_size = { 31 31 }
box_size = { 32 32 }
sight_range = 1
missile = missile_none
priority = 0
Expand Down
2 changes: 1 addition & 1 deletion data/unit_types/units/undead/skeleton_warrior.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ unit_skeleton_warrior = {
parent = unit_template_undead_unit
description = "Raised from their graves, these skeletons are mindless warriors who follow the commands of the necromancer who brought them into undeath."
tile_size = { 1 1 }
box_size = { 31 31 }
box_size = { 32 32 }
image_file = "units/undead/skeleton_warrior.png"
frame_size = { 82 82 }
offset = { 0 6 }
Expand Down
2 changes: 1 addition & 1 deletion scripts/civilizations/ettin/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ DefineUnitType("unit-ettin", {
Description = "The massive ettins lord over Jotunheim, striking terror into the hearts of smaller creatures such as orcs and ogres.",
Image = {"file", "ettin/units/ettin.png", "size", {144, 144}},
Animations = "animations-melee-unit", Icon = "icon-ettin",
TileSize = {2, 2}, BoxSize = {63, 63},
TileSize = {2, 2}, BoxSize = {64, 64},
Costs = {"time", 120, "copper", 1200},
DefaultEquipment = {
{"boots", "unit-boots"}
Expand Down
4 changes: 2 additions & 2 deletions scripts/civilizations/goblin/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ DefineUnitType("unit-goblin-glider", {
Speed = 14,
HitPoints = 20,
DrawLevel = 60,
TileSize = {2, 2}, BoxSize = {63, 63},
TileSize = {2, 2}, BoxSize = {64, 64},
SightRange = 9,
Armor = 2, Missile = "missile-none",
Accuracy = 8,
Expand Down Expand Up @@ -677,7 +677,7 @@ DefineUnitType("unit-goblin-banner", {
RepairCosts = {"copper", 1, "lumber", 1},
HitPoints = 40,
DrawLevel = 30,
TileSize = {1, 1}, BoxSize = {31, 31},
TileSize = {1, 1}, BoxSize = {32, 32},
SightRange = 1,
Missile = "missile-none",
Priority = 0,
Expand Down
2 changes: 1 addition & 1 deletion scripts/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DefineUnitType("unit-template-item", {
NeutralMinimapColor = {255, 255, 0},
HitPoints = 1,
DrawLevel = 30,
TileSize = {1, 1}, BoxSize = {31, 31},
TileSize = {1, 1}, BoxSize = {32, 32},
Missile = "missile-none",
Priority = 0,
Domain = "land",
Expand Down
Loading

0 comments on commit e324aa2

Please sign in to comment.