Delta-v/Content.IntegrationTests/Tests
Fildrance a58252f45e
feat: #26107 uplink discounts for traitors (no nukies for now) (#26297)
* feat: #26107 uplink discounts for traitors and nukies

* refactor: #26107 extracted discount label from price of StoreListingControl

* refactor: minor renaming

* refactor: parametrized adding discounts to uplink store

* fix: #26107 prevent exception on empty discountOptions

* feat: uplink now have 'Discounted' category which contains all discounted items on this session.

* after merge fixups

* rename discount categories according to common sense

* refactor: DiscountOptions is now optional (nullable) on ListingData

* add nullability check ignore for already checked listingData.DiscountOptions

* fix after merge store menu ui

* remove unused using

* final fix after merge conflicts

* [refactor]: #26107 fix variables naming in UplinkSystem

* fix: #26107 fix after merge

* refactor: #26107 now supports discountDownUntil on ListingItem, instead of % of discount

* feat: #26107 support multiple currency discount in store on side of discount message label

* refactor: #26107 extracted discounts initialization to separate system. StoreDiscountData are spread as array and not list now

* refactor: #26107 move more code from storesystem to StoreDiscountComponent

* refactor: #26107 separated StoreSystem and StoreDiscountSystem using events

* fix: #26107 placed not-nullable variable initialization in ListingData for tests

* refactor: #26107 minor renaming, xml-docs

* fix: #26107 changed most of discounts to be down to half price for balance purposes

* ids used in with discounts are now ProtoIds, dicountCategories are now prototypes, code with weights simplified

* decoupled storesystem and store discount system

* xml-docs

* refactor:  #26107 xml-doc for StoreDiscountSystem

* is now a thing (tmp)

* fix: compilation errors + StoreDiscountData.DiscountCategoryId

* refactor: rename ListingDataWithCostModifiers, fix all cost related code, enpittyfy performance, uglify uplink_catalog

* refactor: removed unused code, more StoreDiscountSystem docs, simplify code

* refactor: moved discount category logic to respective system, now creating ListingData c-tor clones all mutable fields as expected

* refactor: rename back (its not prototype)

* refactor: move ListingItemsInitializingEvent to file with handling logic

* refactor: comments for StoreBuyFinishedEvent handling, more logging

* refactor: moved StoreInitializedEvent, xml-doc

* refactor: simplify StoreDiscountSystem code  (reduce nesting) + xml-doc

* refactor: restore old listing data cost field name

* refactor: fix linter in uplink_catalog.yml

* refactor: xml-doc for ListingDataWithCostModifiers

* refactor: limit usage of ListingData in favour of ListingDataWithCostModifiers

* refactor: purged linq, removed custom datafield names, minor cleanup

* refactor: removed double-allocation on getting available listings

* refactor: StoreSystem.OnBuyRequest now uses component.FullListingsCatalog as reference point (as it was in original code)

* fix: minor discount categories on uplink items changes following design overview

* refactor: StoreBuyListingMessage now uses protoId and not whole object

* refactor: store refund and discount integration test, RefreshAllListings now translates previous cost modifiers to refreshed list, if state previous to refresh had any listing items

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
2024-09-05 22:12:39 +10:00
..
Access Add door electronics access configuration menu (#17778) 2024-04-01 17:06:13 +11:00
Actions Fix broken tests directly mutating entities from wrong thread. (#31647) 2024-08-31 15:49:20 +10:00
Administration/Logs Un-revert #26994 2024-04-20 17:01:15 -04:00
Atmos Fix AtmosDeviceSystem debug assert Heisenbug (#29752) 2024-07-11 16:14:34 +10:00
Body Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Buckle Fix test threading (#31669) 2024-08-31 12:35:30 +10:00
Chemistry Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Cleanup Un-revert IPlayerManager refactor (#21244) 2023-10-28 09:59:53 +11:00
Climbing Partial buckling refactor (#29031) 2024-06-20 01:14:18 +10:00
Commands Fix test threading (#31669) 2024-08-31 12:35:30 +10:00
Construction Partial buckling refactor (#29031) 2024-06-20 01:14:18 +10:00
Damageable Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Destructible move gamerule components to shared (#28572) 2024-06-04 21:53:24 +10:00
DeviceNetwork Un-revert #26994 2024-04-20 17:01:15 -04:00
Disposal Fix disposals test (#26535) 2024-03-30 03:03:01 +11:00
DoAfter Add StorageInteractionTest (#28541) 2024-06-03 17:05:51 -04:00
Doors Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
EncryptionKeys Add StorageInteractionTest (#28541) 2024-06-03 17:05:51 -04:00
Fluids Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
GameObjects/Components Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
GameRules refactor event schedulers to use explicit game rules (#29320) 2024-08-14 15:21:01 +10:00
Gravity Station Anchor (#26098) 2024-08-31 10:40:28 -04:00
Guidebook Give jobs & antags prototypes a guide field (#28614) 2024-06-06 05:05:58 -07:00
Hands Fixes dropping item in container (#29900) 2024-07-12 19:24:08 +10:00
Interaction Strip drag drop test (#30754) 2024-08-08 12:12:01 +10:00
Internals Fix internals not auto-activating for entities spawned in space (#29213) 2024-06-25 16:28:48 +10:00
Linter Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Lobby Lobby refactor + species loadouts support (#27576) 2024-05-12 09:18:21 +10:00
Localization Add integration test for LocalizedDatasets (#28485) 2024-06-03 15:40:46 -04:00
Mapping Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Materials Remove obsolete PoolManager methods (#19499) 2023-08-25 12:13:11 +10:00
Minds Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Movement Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
NPC Allow the creation of recursive HTNs (#30138) 2024-07-30 12:18:53 +10:00
Networking Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Payload Add StorageInteractionTest (#28541) 2024-06-03 17:05:51 -04:00
Physics Add test for anchored prototypes (#30526) 2024-07-31 21:31:41 +10:00
Power Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Preferences De-duplicate loadout gear (#30341) 2024-08-05 00:42:25 -04:00
Procedural Remove obsolete TestPair.Pair (#19496) 2023-08-25 10:56:51 +10:00
PrototypeTests Add PrototypeUploadTest (#28522) 2024-06-03 01:21:46 -04:00
Puller Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Replays Mark all tests that restart rounds as dirty (#21376) 2023-11-01 19:56:07 -07:00
Roles De-duplicate loadout gear (#30341) 2024-08-05 00:42:25 -04:00
Round Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Serialization Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Shuttle Fix test threading (#31669) 2024-08-31 12:35:30 +10:00
Sprite Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Station Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
Storage Add closing storage UIs to StorageInteractionTest (#28633) 2024-06-05 18:14:25 -04:00
Strip Strip drag drop test (#30754) 2024-08-08 12:12:01 +10:00
Tag Cleans up tag system (#28272) 2024-06-02 11:11:19 +10:00
Tiles Add StorageInteractionTest (#28541) 2024-06-03 17:05:51 -04:00
Toolshed Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
UserInterface Add BUI ctor tests (#31463) 2024-08-26 17:39:48 +10:00
Utility Add EntityWhitelistSystem (#27632) 2024-05-03 10:10:15 +10:00
Weldable Add StorageInteractionTest (#28541) 2024-06-03 17:05:51 -04:00
Wires Fix wire layout inheritance. (#26289) 2024-03-20 16:22:47 +01:00
CargoTest.cs Fix broken tests directly mutating entities from wrong thread. (#31647) 2024-08-31 15:49:20 +10:00
ClickableTest.cs Make clickable 1% nicer (#29706) 2024-08-09 17:05:12 +10:00
ConfigPresetTests.cs Fix ConfigPresetTests.TestLoadAll not handling automatic panic bunker (#23414) 2024-01-02 19:08:50 -08:00
ContainerOcclusionTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
DeleteInventoryTest.cs Remove obsolete PoolManager methods (#19499) 2023-08-25 12:13:11 +10:00
DummyIconTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
EntityTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
FillLevelSpriteTest.cs Add an integration test for solution fill level sprites. (#28564) 2024-06-04 10:23:43 +10:00
FollowerSystemTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
GravityGridTest.cs Station Anchor (#26098) 2024-08-31 10:40:28 -04:00
HumanInventoryUniformSlotsTest.cs Storage Standardization [Take 2] (#21270) 2023-10-30 20:55:55 -07:00
InventoryHelpersTest.cs Remove obsolete TestPair.Pair (#19496) 2023-08-25 10:56:51 +10:00
LogErrorTest.cs Remove obsolete TestPair.Pair (#19496) 2023-08-25 10:56:51 +10:00
MachineBoardTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
MappingEditorTest.cs Add mapping editor (#23427) 2024-08-04 13:31:45 +10:00
MaterialArbitrageTest.cs reduce lathe recipe copy pasta (#31515) 2024-08-29 15:36:29 -04:00
PostMapInitTest.cs Fixup playerspawn stuff (#31546) 2024-08-29 15:27:47 +10:00
PrototypeSaveTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
ResearchTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
ResettingEntitySystemTests.cs fix antag selection being evil (#28197) 2024-05-26 01:14:29 -04:00
RestartRoundTest.cs Mark all tests that restart rounds as dirty (#21376) 2023-11-01 19:56:07 -07:00
RoundEndTest.cs Resolve all non-obsoleting warnings in content (#27934) 2024-05-11 20:13:58 -07:00
SalvageTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
SaveLoadMapTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
SaveLoadSaveTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
ShuttleTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00
StartTest.cs Remove obsolete TestPair.Pair (#19496) 2023-08-25 10:56:51 +10:00
StorageTest.cs Fix tests (#27711) 2024-05-05 19:08:56 -07:00
StoreTests.cs feat: #26107 uplink discounts for traitors (no nukies for now) (#26297) 2024-09-05 22:12:39 +10:00
VendingMachineRestockTest.cs Code Cleanup: Integration Tests (#29584) 2024-07-03 10:01:37 +10:00