Merge branch 'dev' of git.kingsome.cn:server/game2006go into dev

This commit is contained in:
yangduo 2024-07-11 13:58:46 +08:00
commit d21a7da8ed
4 changed files with 14 additions and 1 deletions

View File

@ -93,6 +93,10 @@ const (
GAME_LOG_TYPE_BACKTASK_USER_ADD_GOLD_END = "backtask.user_add_gold.end" GAME_LOG_TYPE_BACKTASK_USER_ADD_GOLD_END = "backtask.user_add_gold.end"
) )
const (
MAP_MODE_BOUNTY = 301
)
const ( const (
BC_CURRENCY_NAME_ETHEREUM = "Ethereum" BC_CURRENCY_NAME_ETHEREUM = "Ethereum"
BC_CURRENCY_NAME_USDC = "USDC" BC_CURRENCY_NAME_USDC = "USDC"

View File

@ -111,4 +111,4 @@ WHERE A.idx > %d AND A.net_id = %d AND A.last_owner_address= '%s' AND A.owner_ad
} }
} }
c.JSON(200, rspObj) c.JSON(200, rspObj)
} }

View File

@ -6,6 +6,8 @@ require q5 v1.0.0
require f5 v1.0.0 require f5 v1.0.0
require jccommon v1.0.0
require mt v1.0.0 require mt v1.0.0
require mtb v1.0.0 // indirect require mtb v1.0.0 // indirect
@ -57,6 +59,8 @@ replace q5 => ../../third_party/q5
replace f5 => ../../third_party/f5 replace f5 => ../../third_party/f5
replace jccommon => ../jccommon
replace mt => ./mt replace mt => ./mt
replace mtb => ./mtb replace mtb => ./mtb

View File

@ -7,6 +7,7 @@ import (
"mt" "mt"
"main/common" "main/common"
"main/constant" "main/constant"
"jccommon"
"fmt" "fmt"
"sort" "sort"
@ -690,6 +691,10 @@ func (this *team) EnemyTeamMustHasRealPlayer() bool {
return false return false
} }
func (this *team) NeedMatchRealPlayer() bool {
return q5.ToInt32(this.getModeId()) == jccommon.MAP_MODE_BOUNTY
}
func newTeam() *team { func newTeam() *team {
t := new(team) t := new(team)
t.state = constant.TEAM_STATE_INIT t.state = constant.TEAM_STATE_INIT