| | |
| | | import GameWorld
|
| | | import ChConfig
|
| | | import ChItem
|
| | | import PlayerControl
|
| | |
|
| | | ## GM命令执行入口
|
| | | # @param curPlayer 当前玩家
|
| | |
| | | doCount = 0
|
| | | dropCount = 0
|
| | | index = 0
|
| | | sightLevel = PlayerControl.GetMapRealmDifficulty(curPlayer)
|
| | | for posX, posY in ChConfig.Def_DropItemAreaMatrix:
|
| | | doCount += 1
|
| | | resultX = dropPosX + posX
|
| | |
| | | continue
|
| | |
|
| | | # 在地上添加物品
|
| | | ChItem.AddMapDropItem(resultX, resultY, curItem, ownerInfo=[dropType, ownerID, specOwnerIDList])
|
| | | ChItem.AddMapDropItem(resultX, resultY, curItem, ownerInfo=[dropType, ownerID, specOwnerIDList], sightLevel=sightLevel)
|
| | | dropCount += 1
|
| | |
|
| | | GameWorld.DebugAnswer(curPlayer, "检测坐标数:%s 掉落数: %s" % (doCount, dropCount))
|