hxp
2022-08-23 5fa02b1adbf1900358ab44a915cd9e841dcdf45f
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItem.py
@@ -23,6 +23,7 @@
import GameWorld
import ChConfig
import ChItem
import PlayerControl
## GM命令执行入口
#  @param curPlayer 当前玩家
@@ -53,6 +54,7 @@
    doCount = 0
    dropCount = 0
    index = 0
    sightLevel = PlayerControl.GetMapRealmDifficulty(curPlayer)
    for posX, posY in ChConfig.Def_DropItemAreaMatrix:
        doCount += 1
        resultX = dropPosX + posX
@@ -72,7 +74,7 @@
            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))