1
This commit is contained in:
parent
c48861a913
commit
583e193fce
@ -17,9 +17,11 @@ type ItemTable struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *Item) Init1() {
|
func (this *Item) Init1() {
|
||||||
tmpStrs := strings.Split(this.Item.GetBuffList(), "|")
|
if this.Item.GetBuffList() != "" {
|
||||||
for str := range(tmpStrs) {
|
tmpStrs := strings.Split(this.Item.GetBuffList(), "|")
|
||||||
q5.AppendSlice(&this.buffList, q5.ToInt32(str))
|
for _, val := range(tmpStrs) {
|
||||||
|
q5.AppendSlice(&this.buffList, q5.ToInt32(val))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ func (this *buff) List(accountId string) (error, []*model.Buff) {
|
|||||||
|
|
||||||
func (this *buff) Add(accountId string, buffList []int32) {
|
func (this *buff) Add(accountId string, buffList []int32) {
|
||||||
nowTime := int32(f5.GetApp().GetRealSeconds())
|
nowTime := int32(f5.GetApp().GetRealSeconds())
|
||||||
for buffId := range(buffList) {
|
for _, buffId := range(buffList) {
|
||||||
buffMeta := mt.Table.Buff.GetById(int64(buffId))
|
buffMeta := mt.Table.Buff.GetById(int64(buffId))
|
||||||
if buffMeta != nil {
|
if buffMeta != nil {
|
||||||
buffModel := new(model.Buff)
|
buffModel := new(model.Buff)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user