测试
This commit is contained in:
parent
41fe5c1c2c
commit
829a26dce0
@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
mergeDataCfg "server/conf/mergeData"
|
||||
"server/game/mod/decorate"
|
||||
"server/game/mod/order"
|
||||
"server/game/mod/quest"
|
||||
"server/msg"
|
||||
@ -205,8 +206,8 @@ func UnitChess1(p *Player) error {
|
||||
}
|
||||
|
||||
func UnitPlayroom(p *Player) error {
|
||||
PlayroomMod := p.PlayMod.getPlayroomMod()
|
||||
PlayroomMod.UnLock(15)
|
||||
//PlayroomMod := p.PlayMod.getPlayroomMod()
|
||||
//PlayroomMod.UnLock(15)
|
||||
PlayroomBackData(p)
|
||||
return nil
|
||||
}
|
||||
@ -235,17 +236,19 @@ func UnitPetOrder(p *Player) error {
|
||||
}
|
||||
|
||||
func UnitDecoratePartCost(p *Player) error {
|
||||
// DecorateMod := p.PlayMod.getDecorateMod()
|
||||
// DecorateMod.PartCost = make(map[int]*decorate.PartCostInfo)
|
||||
// DecorateMod.PartClassPool = []int{}
|
||||
// DecorateMod.PartPool = make(map[int]int)
|
||||
// DecorateMod.InitData()
|
||||
// Items, _ := DecorateMod.GetDecorateCostItem(1, 41)
|
||||
// err := p.HandleLoseItem(Items, "")
|
||||
// if err != nil {
|
||||
// fmt.Print(err)
|
||||
// }
|
||||
// return nil
|
||||
p.LoginBackData()
|
||||
DecorateMod := p.PlayMod.getDecorateMod()
|
||||
DecorateMod.AreaId = 3
|
||||
DecorateMod.PartCost = make(map[int]*decorate.PartCostInfo)
|
||||
DecorateMod.PartClassPool = []int{}
|
||||
DecorateMod.PartPool = make(map[int]int)
|
||||
DecorateMod.InitData()
|
||||
Items, _ := DecorateMod.GetDecorateCostItem(1, 33)
|
||||
err := p.HandleLoseItem(Items, "")
|
||||
if err != nil {
|
||||
fmt.Print(err)
|
||||
}
|
||||
return nil
|
||||
ChessMod := p.PlayMod.getChessMod()
|
||||
return ChessMod.PutPartInBag(1515)
|
||||
}
|
||||
@ -261,3 +264,12 @@ func UnitOrderTrigger(p *Player) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func UnitOrderExtra(p *Player) error {
|
||||
OrderMod := p.PlayMod.getOrderMod()
|
||||
BaseMod := p.PlayMod.getBaseMod()
|
||||
ChessMod := p.PlayMod.getChessMod()
|
||||
Update := OrderMod.CreateExtraOrder([]int{25}, nil, ChessMod.GetUnlockChessList(), BaseMod.GetEnergyMul(), BaseMod.GetLevel())
|
||||
fmt.Print(Update)
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user