Reduce weight limit, lighthouses also show all dragons.

This commit is contained in:
Enno Rehling 2020-08-05 16:33:00 +02:00
parent 19a2a69f33
commit 6c2f6a98eb
2 changed files with 2 additions and 2 deletions

View File

@ -2371,7 +2371,7 @@ bool visible_unit(const unit *u, const faction *f, int stealthmod, seen_mode mod
else {
if (stealthmod > INT_MIN) {
if (mode == seen_lighthouse) {
return u_race(u)->weight > 10000;
return u_race(u)->weight >= 5000;
} else if (mode > seen_travel || u->building || u->ship || is_guard(u)) {
return cansee(f, u->region, u, stealthmod);
}

View File

@ -871,7 +871,7 @@ static void test_visible_unit(CuTest *tc) {
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_lighthouse_land));
CuAssertTrue(tc, !visible_unit(u, f, -2, seen_lighthouse));
rc->weight = 11000;
rc->weight = 5000;
CuAssertTrue(tc, visible_unit(u, f, -2, seen_lighthouse));
u->ship = sh = test_create_ship(u->region, NULL);