-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/gp shop #644
base: develop
Are you sure you want to change the base?
Feature/gp shop #644
Conversation
The online shop still crashes currently.
Added json asset to populate shop contents.
Any reason this hasn't been merged? 🤔 |
No one has reviewed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got plenty of comments regarding strings default value. By default they get a null value, which is probably never going to be a problem in this PR since the strings are always set to a different value, but its not uncommon to leave fields without setting during testing and having the server fail to serialize a null string, which is why its better to always initialize these values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as in the other PR, it's better to have these in alphabetical order, as theyre already grouped by the group name prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in the banner PR, I don't think we should include copyrighted images in the repo
public ushort MaxSlotNum { get; set; } | ||
|
||
public CDataGameItemStorageInfo() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GameItemStorage should be instanced in the constructor
public List<CDataGachaDrawGroupInfo> DrawGroups { get; set; } | ||
|
||
public CDataGachaInfo() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The strings should be instanced in the constructor
public class CDataGPShopDisplayType | ||
{ | ||
public uint ID { get; set; } | ||
public string Name { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string should be instanced in the constructor
ID = 1, | ||
CourseID = 1, | ||
Name = "Adventure Passport (active)", | ||
ImageAddr = "http://localhost:52099/shop/img/payment/icon_course1.png", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto regarding localhost
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more localhost
WeightDispTitle = "Percentage Provided", | ||
WeightDispText = "Class S 100.0%\r\n*Probability of provision is rounded to one decimal place.", | ||
ListAddr = "http://localhost:52099/shop/img/payment/icon_lot72.jpg", | ||
ImageAddr = "http://localhost:52099/shop/img/payment/image_lot67_01_campaign2.jpg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more localhost
WeightDispType = 1, | ||
FreeSpaceText = "", | ||
ListAddr = "http://localhost:52099/sp_ingame/campaign/bnr/lotto/lot_icon_170316_03.jpg", | ||
ImageAddr = "http://localhost:52099/sp_ingame/campaign/bnr/lotto/lot_icon_170316_03.jpg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more localhost
if (Server.WalletManager.RemoveFromWalletNtc(client, client.Character, walletType, request.Price)) | ||
{ | ||
// Failed to deduct the cost | ||
return res; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldnt this set an error code?
Thanks for the review. This was not actually my PR but I added the JSON config to it. Anyways, will go through and fix them. |
Features:
Technical details:
Notes on testing:
Open points:
Authored-by: @Sehkah
Checklist:
develop
branch