Просмотр исходного кода

新增添加积分 GM命令以及修改名字长度限制

249435196@qq.com 1 год назад
Родитель
Сommit
2b6d156138

+ 9 - 0
script/module/chat/Gm.lua

@@ -22,6 +22,7 @@ local BuyLogic = require("topup.BuyLogic")
 local WarOrder = require("shop.WarOrder")
 local GiftLogic = require("topup.GiftLogic")
 local HeroSkinLogic = require("present.HeroSkinLogic")
+local DrawCardLogic = require("drawCard.DrawCardLogic")
 
 d3 = {}
 
@@ -80,6 +81,14 @@ function checkGm(human, str)
 	return true
 end
 
+function d3.addJifen(human,val)
+	local v = tonumber(val)
+	if not v then 
+		print("param invalid")
+		return
+	end
+	return DrawCardLogic.getJifen(human,v)
+end
 
 function d3.unlockOrder(human,orderType)
 	local t = tonumber(orderType)

+ 4 - 0
script/module/drawCard/DrawCardLogic.lua

@@ -85,6 +85,10 @@ function updateJifen(human, d)
    human.db.drawCard.jifen = human.db.drawCard.jifen + d
 end
 
+function addJifen(human,val)
+    human.db.drawCard.jifen = human.db.drawCard.jifen + val
+end
+
 -- 根据抽奖id获取相关信息
 function getDrawInfo(human, id)
     return human.db.drawCard.list[id]

+ 2 - 2
script/module/role/CreateRole.lua

@@ -25,8 +25,8 @@ local ChatPaoMaLogic = require("chat.ChatPaoMaLogic")
 local MailExcel = require("excel.mail")
 local MailManager = require("mail.MailManager")
 
-local ROLE_NAME_LEN_MAX = 21
-local ROLE_NAME_LEN_MIN = 5
+local ROLE_NAME_LEN_MAX = 20
+local ROLE_NAME_LEN_MIN = 4
 local OP_RET_SUCC = 1
 local OP_RET_FAIL = 0
 

+ 2 - 2
script/module/union/UnionLogic.lua

@@ -57,8 +57,8 @@ local POST_OFFICIAL_MAXCNT = 3                      -- 官员上限
 local UNION_CHANGE_CD = 86400                       -- 公告修改CD
 local SIGNIN_GIVE_UNIONCOIN = 50                    -- 签到给与公会币
 local CHANGENAME_NEED_ZUANSHI = 500                -- 改名花费
-local UNION_NAME_LEN_MAX = 18                       -- 公会名字最大长度
-local UNION_NAME_LEN_MIN = 3                        -- 公会名字最小长度
+local UNION_NAME_LEN_MAX = 20                       -- 公会名字最大长度
+local UNION_NAME_LEN_MIN = 4                        -- 公会名字最小长度
 local UNION_ALL_MAIL_MAX_CNT = 10                   -- 每日邮件上限
 local UNION_AUTO_PRESIDENT_TIME = 3 * 86400         -- 会长离线x秒自动转让位置
 local RECRUIT_COST_VALUE = 18                      -- 招募花费