mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 09:45:28 +00:00
LWOMissionOfferComponent builds a player's missions for a giver (0x00c605f0, one entry 0x00bebf30) in priority order: 0 a mission to turn in here, 5 one in progress, 10 a new one, 15 a repeat. A ready mission is only listed where MissionNPCComponent.acceptsMission is set, a new one only where offersMission is set and its cooldown has run out, a mission in progress by every giver that has it. A random mission (0x00c5ffd0) lists one of its pool that the giver has: one to turn in first, then one in progress, else a random one. Missions are kept by mission ID; equal priorities keep that order. DLU sent an OfferMission for every mission that qualified, including one ready to turn in at a giver that does not accept it. In the live captures every use got one mission's OfferMission pair. A use now offers the head of the list, and a pick from the multi interaction menu the picked one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
set(DCOMPONENTS_TESTS
|
|
"DeletionRestrictionTests.cpp"
|
|
"MovingPlatformComponentTests.cpp"
|
|
"InventorySaveTests.cpp"
|
|
"EquipMessagesTests.cpp"
|
|
"DestroyableLevelConfigTests.cpp"
|
|
"RailActivatorComponentTests.cpp"
|
|
"VendorBuybackTests.cpp"
|
|
"RacingWrongWayTests.cpp"
|
|
"DestroyableComponentTests.cpp"
|
|
"PetComponentTests.cpp"
|
|
"SimplePhysicsComponentTests.cpp"
|
|
"MovementBlockerScenarioTests.cpp"
|
|
"SavingTests.cpp"
|
|
"CharacterSaveFieldsTests.cpp"
|
|
"CollectibleComponentTests.cpp"
|
|
"MissionOfferTests.cpp"
|
|
"ReplicaComponentOrderTests.cpp"
|
|
"QuickBuildCompleteTests.cpp"
|
|
"RocketLaunchTests.cpp"
|
|
"ReplicaConstructionTests.cpp"
|
|
"ReplicaDecoderTests.cpp"
|
|
"CapturePropertyTests.cpp"
|
|
"ItemRemovalTests.cpp"
|
|
"LootMetricsTests.cpp"
|
|
"SpawnerComponentTests.cpp"
|
|
)
|
|
|
|
# Get the folder name and prepend it to the files above
|
|
get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
|
list(TRANSFORM DCOMPONENTS_TESTS PREPEND "${thisFolderName}/")
|
|
|
|
# Export to parent scope
|
|
set(DCOMPONENTS_TESTS ${DCOMPONENTS_TESTS} PARENT_SCOPE)
|
|
|
|
# Copy test files to testing directory
|
|
add_subdirectory(TestData)
|
|
list(TRANSFORM COMPONENT_TEST_DATA PREPEND "${thisFolderName}/")
|
|
set(COMPONENT_TEST_DATA ${COMPONENT_TEST_DATA} PARENT_SCOPE)
|