Skip to content

Commit 8375658

Browse files
committed
build init trainNum
1 parent 3d8701a commit 8375658

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

root.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class RootController(BaseController):
137137
#statuebuilding lev,corn(cae) defenceadd pop time
138138
statuebuilding = [[27,80000,600,20,7200],[30,-8,700,40,14400]]
139139
#decorationbuild:cornorcae,人口上限,解锁等级
140-
decorationbuild=[[10,5,1],[20,5,1],[30,5,1],[50,5,4],[-1,50,5],[100,6,6],[100,6,6],[100,6,6],[100,6,6],[100,6,6],[100,6,6],[200,8,7],[-3,170,8],[400,15,9],[600,20,10],[800,25,11],[1000,30,12],[900,35,13],[1200,40,14],[2000,50,15],[-5,300,10],[1500,60,16],[1500,60,16],[1500,60,16],[1600,65,18],[1600,65,18],[1600,65,18],[1600,65,18],[-3,150,15],[-3,150,15],[-3,150,15],[-3,150,15],[1800,70,20],[1800,70,20],[1800,70,20],[2000,80,25],[2000,80,25],[2000,80,25],[-10,300,20],[5000,90,3],[-5,150,3],[-10,300,3]]#corn(or cae),populationupbound
140+
decorationbuild=[[10,5,1],[20,5,1],[30,5,1],[50,5,4],[-1,50,5],[100,6,6],[100,6,6],[100,6,6],[100,6,6],[100,6,6],[100,6,6],[200,8,7],[-3,170,8],[400,15,9],[600,20,10],[800,25,11],[1000,30,12],[900,35,13],[1200,40,14],[2000,50,15],[-5,300,10],[1500,60,16],[1500,60,16],[1500,60,16],[1600,65,18],[1600,65,18],[1600,65,18],[1600,65,18],[-3,150,15],[-3,150,15],[-3,150,15],[-3,150,15],[1800,70,20],[1800,70,20],[1800,70,20],[2000,80,25],[2000,80,25],[2000,80,25],[-10,300,20],[5000,90,3],[-5,150,3],[-10,300,3],[2000,30,17],[-10,300,20]]#corn(or cae),populationupbound
141141
#农作物list:#corn,exp,food,time,解锁等级
142142
Plant_Price=[[50,1,20,600,1],[165,3,50,2700,1],[-1,8,120,3600,5],[700,7,150,9360,5],[1440,12,300,22680,7],[-3,25,430,14400,7],[230,5,52,1800,13],[600,9,80,5400,16],[-2,30,280,9000,10],[1210,15,200,11520,20],[3000,25,410,29160,25],[-5,50,650,25200,15]]#corn,food,cae
143143
beginTime=(2011,1,1,0,0,0,0,0,0)
@@ -206,6 +206,11 @@ def getOtherid(self, uid):
206206
return dict(id=0, reason='no such user')
207207
return dict(id=1, otherid=user.otherid)
208208
@expose('json')
209+
def removeMsg(self, uid, mid):
210+
msg = DBSession.query(Message).filter_by(mid=mid).one()
211+
DBSession.delete(msg)
212+
return dict(id=1, result="remove suc")
213+
@expose('json')
209214
def sendMsg(self, uid, fid, msg):
210215
uid = int(uid)
211216
fid = int(fid)
@@ -5126,7 +5131,7 @@ def build(self,user_id,city_id,ground_id,grid_id):# 对外接口,建造建筑
51265131
#reward
51275132
user.populationupbound += 100
51285133

5129-
dragon = Dragon(uid = user_id, bid = building.bid, friNum = 0, state=0, health = 0, name = '我的宠物', kind = 0, friList= '[]', lastFeed = 0, attack=0)
5134+
dragon = Dragon(uid = user_id, bid = building.bid, friNum = 0, state=0, health = 0, name = '我的宠物', kind = 0, friList= '[]', lastFeed = 0, attack=0, trainNum = 0)
51305135
DBSession.add(dragon)
51315136
#update business read for logsign
51325137
read(city_id)

0 commit comments

Comments
 (0)