Tweak tower and unit values

This commit is contained in:
2024-02-15 14:51:51 +01:00
parent dc99726824
commit 9ca1992eef
2 changed files with 7 additions and 7 deletions

View File

@@ -177,14 +177,14 @@ ecs_entity_t placeBuilding(Game *game, BuildingType type,
ecs_set(ECS, building, AttachedEntity, {mage});
ecs_set(ECS, building, Tower, {
.range = 80.0f,
.projMinDamage = 40.0f,
.projMaxDamage = 80.0f,
.projMinDamage = 20.0f,
.projMaxDamage = 50.0f,
.projMinLifespan = 0.8f,
.projMaxLifespan = 1.2f,
.projSpeed = 100.0f,
.projRadius = 4.0f,
.projDamageCount = 3,
.fireCooldown = 0.8f,
.fireCooldown = 0.9f,
.fireElapsed = 0.0f,
});
break;

View File

@@ -77,8 +77,8 @@ ecs_entity_t entityCreateSoldier(const Position position, Player player, Game *g
Unit unit = {0};
ecs_entity_t e = entityCreateBaseUnit(position, 10.0f, player, ENTITY_SOLDIER, ANIM_IDLE, &unit, game);
ecs_set(ECS, e, Health, {
.startHP = 40.0f,
.hp = 40.0f,
.startHP = 80.0f,
.hp = 80.0f,
.lastChanged = -1000.0f
});
unit.minDamage = 5.0f;
@@ -92,8 +92,8 @@ ecs_entity_t entityCreateWarrior(const Position position, Player player, Game *g
Unit unit = {0};
ecs_entity_t e = entityCreateBaseUnit(position, 10.0f, player, ENTITY_WARRIOR, ANIM_IDLE, &unit, game);
ecs_set(ECS, e, Health, {
.startHP = 80.0f,
.hp = 80.0f,
.startHP = 200.0f,
.hp = 200.0f,
.lastChanged = -1000.0f
});
unit.minDamage = 8.0f;