add MaximumFP option, hide null Festa Armor

This commit is contained in:
wish
2023-07-22 23:12:26 +10:00
parent e6393d73dc
commit 769f989c91
3 changed files with 20 additions and 17 deletions

View File

@@ -39,6 +39,7 @@
"FeaturedWeapons": 1, "FeaturedWeapons": 1,
"MaximumNP": 100000, "MaximumNP": 100000,
"MaximumRP": 50000, "MaximumRP": 50000,
"MaximumFP": 120000,
"DisableLoginBoost": false, "DisableLoginBoost": false,
"DisableBoostTime": false, "DisableBoostTime": false,
"BoostTimeDuration": 120, "BoostTimeDuration": 120,

View File

@@ -124,6 +124,7 @@ type GameplayOptions struct {
FeaturedWeapons int // Number of Active Feature weapons to generate daily FeaturedWeapons int // Number of Active Feature weapons to generate daily
MaximumNP int // Maximum number of NP held by a player MaximumNP int // Maximum number of NP held by a player
MaximumRP uint16 // Maximum number of RP held by a player MaximumRP uint16 // Maximum number of RP held by a player
MaximumFP uint32 // Maximum number of FP held by a player
DisableLoginBoost bool // Disables the Login Boost system DisableLoginBoost bool // Disables the Login Boost system
DisableBoostTime bool // Disables the daily NetCafe Boost Time DisableBoostTime bool // Disables the daily NetCafe Boost Time
BoostTimeDuration int // The number of minutes NetCafe Boost Time lasts for BoostTimeDuration int // The number of minutes NetCafe Boost Time lasts for

View File

@@ -153,9 +153,9 @@ type FestaTrial struct {
type FestaReward struct { type FestaReward struct {
Unk0 uint8 Unk0 uint8
Unk1 uint8 Unk1 uint8
Unk2 uint16 ItemType uint16
Unk3 uint16 Quantity uint16
Unk4 uint16 ItemID uint16
Unk5 uint16 Unk5 uint16
Unk6 uint16 Unk6 uint16
Unk7 uint8 Unk7 uint8
@@ -225,46 +225,47 @@ func handleMsgMhfInfoFesta(s *Session, p mhfpacket.MHFPacket) {
bf.WriteUint16(trial.Unk) bf.WriteUint16(trial.Unk)
} }
// The Winner and Loser Armor IDs are missing
rewards := []FestaReward{ rewards := []FestaReward{
{1, 0, 7, 350, 1520, 0, 0, 0}, {1, 0, 7, 350, 1520, 0, 0, 0},
{1, 0, 7, 1000, 7011, 0, 0, 1}, {1, 0, 7, 1000, 7011, 0, 0, 1},
{1, 0, 12, 1000, 0, 0, 0, 0}, {1, 0, 12, 1000, 0, 0, 0, 0},
{1, 0, 13, 0, 0, 0, 0, 0}, {1, 0, 13, 0, 0, 0, 0, 0},
{1, 0, 1, 0, 0, 0, 0, 0}, //{1, 0, 1, 0, 0, 0, 0, 0},
{2, 0, 7, 350, 1520, 0, 0, 0}, {2, 0, 7, 350, 1520, 0, 0, 0},
{2, 0, 7, 1000, 7011, 0, 0, 1}, {2, 0, 7, 1000, 7011, 0, 0, 1},
{2, 0, 12, 1000, 0, 0, 0, 0}, {2, 0, 12, 1000, 0, 0, 0, 0},
{2, 0, 13, 0, 0, 0, 0, 0}, {2, 0, 13, 0, 0, 0, 0, 0},
{2, 0, 4, 0, 0, 0, 0, 0}, //{2, 0, 4, 0, 0, 0, 0, 0},
{3, 0, 7, 350, 1520, 0, 0, 0}, {3, 0, 7, 350, 1520, 0, 0, 0},
{3, 0, 7, 1000, 7011, 0, 0, 1}, {3, 0, 7, 1000, 7011, 0, 0, 1},
{3, 0, 12, 1000, 0, 0, 0, 0}, {3, 0, 12, 1000, 0, 0, 0, 0},
{3, 0, 13, 0, 0, 0, 0, 0}, {3, 0, 13, 0, 0, 0, 0, 0},
{3, 0, 1, 0, 0, 0, 0, 0}, //{3, 0, 1, 0, 0, 0, 0, 0},
{4, 0, 7, 350, 1520, 0, 0, 0}, {4, 0, 7, 350, 1520, 0, 0, 0},
{4, 0, 7, 1000, 7011, 0, 0, 1}, {4, 0, 7, 1000, 7011, 0, 0, 1},
{4, 0, 12, 1000, 0, 0, 0, 0}, {4, 0, 12, 1000, 0, 0, 0, 0},
{4, 0, 13, 0, 0, 0, 0, 0}, {4, 0, 13, 0, 0, 0, 0, 0},
{4, 0, 4, 0, 0, 0, 0, 0}, //{4, 0, 4, 0, 0, 0, 0, 0},
{5, 0, 7, 350, 1520, 0, 0, 0}, {5, 0, 7, 350, 1520, 0, 0, 0},
{5, 0, 7, 1000, 7011, 0, 0, 1}, {5, 0, 7, 1000, 7011, 0, 0, 1},
{5, 0, 12, 1000, 0, 0, 0, 0}, {5, 0, 12, 1000, 0, 0, 0, 0},
{5, 0, 13, 0, 0, 0, 0, 0}, {5, 0, 13, 0, 0, 0, 0, 0},
{5, 0, 1, 0, 0, 0, 0, 0}, //{5, 0, 1, 0, 0, 0, 0, 0},
} }
bf.WriteUint16(uint16(len(rewards))) bf.WriteUint16(uint16(len(rewards)))
for _, reward := range rewards { for _, reward := range rewards {
bf.WriteUint8(reward.Unk0) bf.WriteUint8(reward.Unk0)
bf.WriteUint8(reward.Unk1) bf.WriteUint8(reward.Unk1)
bf.WriteUint16(reward.Unk2) bf.WriteUint16(reward.ItemType)
bf.WriteUint16(reward.Unk3) bf.WriteUint16(reward.Quantity)
bf.WriteUint16(reward.Unk4) bf.WriteUint16(reward.ItemID)
bf.WriteUint16(reward.Unk5) bf.WriteUint16(reward.Unk5)
bf.WriteUint16(reward.Unk6) bf.WriteUint16(reward.Unk6)
bf.WriteUint8(reward.Unk7) bf.WriteUint8(reward.Unk7)
} }
bf.WriteUint32(120000) bf.WriteUint32(s.server.erupeConfig.GameplayOptions.MaximumFP)
bf.WriteUint16(500) bf.WriteUint16(500)
categoryWinners := uint16(0) // NYI categoryWinners := uint16(0) // NYI