Commit Graph

202 Commits

Author SHA1 Message Date
ceab229a63 Specified enum
the LOOT_SOURCE enum is now attached to all loot sources.
2022-04-23 20:32:31 -07:00
a4d934913c added lootsource send in GM
WIP commit
2022-04-23 05:13:06 -07:00
d0233a2cd0 Updated AddItemToInventorySync
AddItemToInventorySync now sends the correct loot source type
2022-04-23 04:14:55 -07:00
3d6d5e58a7 Update GameMessages.cpp
I promise I'm not farming changes. I woke up at like 4AM and realised that I'd screwed up in an obvious way. Note to self: You are ALLOWED to change variables.

Wasn't caught in testing because, well, it turns out it's actually impossible to test the edge case this covers, due to the script for the brick console.
2022-04-14 10:09:40 +01:00
cdbb42badf Added a bracket... -_-
Maybe I should write and test code on my computer rather than using Git as an IDE and commits as the save button...
2022-04-14 00:15:45 +01:00
1d1f479387 Ensure items correctly removed from missions
Doubt it would have affected anyone, but technically if you had a mission to collect something interactable, and you deleted the items at the same time as interacting with something, this would have counted incorrectly. I'm being defensive because I was an idiot who couldn't read, but in my defence, it was late when I made the first edit, and I'm also a blundering idiot!
2022-04-14 00:11:35 +01:00
59ec28a5a4 Prevent integer underflow in item removal
Previously, the only check that the user wasn't trashing more items than they had was clientsided, and this could be bypassed by contacting the server to remove items via a console or the like, and then trashing them before the server could respond, resulting in the count for the items being less than iStackCount. This check prevents that underflow.
2022-04-13 01:58:00 +01:00
e92cdc4f14 Merge pull request #493 from EmosewaMC/ugh
Pets no longer cause client hitches in Nimbus Station and Forbidden Valley
2022-04-11 14:35:57 -07:00
5a76cb3b44 fixed erronous log 2022-04-08 19:36:43 -07:00
4b0ab2380c Client does calcs 2022-04-06 22:21:17 -07:00
db0f363967 Merge pull request #476 from EmosewaMC/bugReportFixing
Added more specific bug reporting.  There is a new migration called migrations/dlu/2_reporter_id.sql to run on the database.
2022-04-01 15:12:58 -07:00
cf70881370 simplified conversion 2022-03-31 03:20:13 -07:00
cc9b6c05f6 removed include 2022-03-30 22:35:41 -07:00
9169acad47 changed to update 2022-03-30 22:14:51 -07:00
d3f954bdac changed serialized value to old
I am unsure if this is what gets serialized here so I am reverting this back to a zero.
2022-03-30 20:32:59 -07:00
c80a90e81e rejection statuses were backwards 2022-03-30 20:31:51 -07:00
0bf2f0e92a Added enum for rejection statuses 2022-03-30 16:14:24 -07:00
b676343b02 removed print and rejection send 2022-03-30 00:02:18 -07:00
e244fbccc2 General updates to the property manager
clone id is correctly assigned, reputation now shows up, rejection verdict is sent correctly (not sure about where the reason goes if  it even goes here).
2022-03-29 23:49:04 -07:00
258174d4e1 Added GameMessage for UpdateReputation 2022-03-29 23:46:23 -07:00
fdd3e15b2f Added GM for reputation update 2022-03-29 19:52:07 -07:00
9f16284595 tab spacing 2022-03-29 19:47:15 -07:00
82ebdccdb2 Reputation is sent as a float not an int 2022-03-29 14:54:31 -07:00
69ec1216dc added comments 2022-03-28 20:51:19 -07:00
17b0de8062 clarified variable name 2022-03-28 19:58:23 -07:00
895bbec277 clarified variable name 2022-03-28 19:58:15 -07:00
c94f0918c9 testing number reverted 2022-03-28 03:26:01 -07:00
54de6c6878 FINALLY WORKING JESUS 2022-03-28 03:24:49 -07:00
0a453e9dca working state 2022-03-27 23:46:43 -07:00
e2bfdcd174 moved char id storage 2022-03-20 20:46:34 -07:00
68c600facc Added better bug reports 2022-03-20 20:28:26 -07:00
a49f9dc586 Merge pull request #461 from EmosewaMC/mailboxSpecialCase
Addressed special case in GameMessage for interacting with a mailbox
2022-02-24 16:10:10 +01:00
5ffb57d92c Removed special case from GM 2022-02-20 19:51:21 -08:00
1c43d7f38c GameMessage is correct 2022-02-20 19:23:03 -08:00
352f654ede Added GM in GameMessages 2022-02-12 21:02:52 -08:00
13980c4133 Added logic to Convert UScore to Coins for Level 45 Characters (#348) 2022-02-03 07:50:02 +01:00
59afc63a2f Merge DarkflameServer 2022-01-30 13:40:08 -05:00
f6558aa31e implement jetpack behavior and remove hardcoded jetpacks (#411) 2022-01-24 14:02:56 -08:00
3de3932503 Comply with Xiphoseer required changes.
Remove the CDClientDatabase::ExecuteQueryWithArgs() function and replace 
it with CDClientDatabase::CreatePreppedStmt().

This prevents a developer from accidently using %s, or incorrectly 
passing std::string, and causing a silent error.
2022-01-12 22:48:27 -05:00
e5f7d164cb Additional SQLite lookup sanitizing.
Using CDClientDatabase::ExecuteQueryWithArgs() across all known lookups.
2022-01-06 21:12:47 -05:00
c1903ca12d Remove IP Logging 2022-01-06 21:54:48 +00:00
8ed7690b96 Merge pull request #203 from cooltrain7/Log-Line-Cleaning
Added Log content additions
2022-01-04 13:15:24 +01:00
329d3d66b3 Update dGame/dGameMessages/GameMessages.h
Co-authored-by: Xiphoseer <Xiphoseer@users.noreply.github.com>
2022-01-03 22:37:58 -08:00
a92e05c640 Update dGame/dGameMessages/GameMessages.cpp
Co-authored-by: Xiphoseer <Xiphoseer@users.noreply.github.com>
2022-01-03 22:37:40 -08:00
6aad799f95 Updated variable names
Updated the variable names to match the enum name update.
2021-12-23 18:48:08 -08:00
29cf7f8998 Changed ambiguous variables
Changed ambiguous variables from int to int32_t to clarify what they are.
2021-12-22 00:15:08 -08:00
97f8e9e9fc Added enum for coin sources
Added an enum for coin sources as to avoid leaving a random number in the code.
2021-12-22 00:01:55 -08:00
23e269940b Implemented sourceType for SendSetCurrency
Implemented sourceType for the function SendSetCurrency.
2021-12-21 23:26:54 -08:00
995042f130 Added missing log newline character 2021-12-13 19:45:08 +00:00
22de531ab3 Changes asked for by Wincent 2021-12-11 13:57:15 +00:00