fix: a property is rented only with the level's required mission

LWOPropertyVendorComponent::onCheckUseRequirements (0x00c2e210) lets a
player use the property guard only when the level's
property_required_mission (LoadConfigData 0x00c2e550) is finished. The
server opened the vendor and rented the property on any request.

The guard is now not opened without the mission, and a rent request
without it is answered with PropertyRentalResponse code 9, which
onPropertyRentalResponse (0x00c56d70) shows as "you failed to rent" with
UGG_PROPRENT_Dont_have_achievement. A mission that was finished and is
being repeated counts, as in the client's list of finished missions. A
guard without the key asks for nothing.

The six property maps name missions 768, 872, 873, 874, 1293 and 1322.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 15:28:18 -06:00
parent 53968599d2
commit baf8b24ad1
4 changed files with 153 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ set(DCOMPONENTS_TESTS
"DestroyableLevelConfigTests.cpp"
"ProximityMonitorComponentTests.cpp"
"RailActivatorComponentTests.cpp"
"PropertyVendorComponentTests.cpp"
"VendorBuybackTests.cpp"
"RacingWrongWayTests.cpp"
"DestroyableComponentTests.cpp"