Exemple #1
0
 def charge(this, name, sp):
     sp = int(sp) * floatsingle.tofloat(this.mod('sp'))
     sp = floatsingle.tofloat(sp)
     sp = floatsingle.ceiling(sp)
     this.s1.charge(sp)
     this.s2.charge(sp)
     this.s3.charge(sp)
     if this.logsp :
         this.logsp('%s, %s'%(this.name, name), sp,
                 '%d/%d, %d/%d, %d/%d'%( \
                 this.s1.sp['cur'], this.s1.sp['max'],
                 this.s2.sp['cur'], this.s2.sp['max'],
                 this.s3.sp['cur'], this.s3.sp['max'])
                 )
Exemple #2
0
 def charge(this, name, sp):
     sp = int(sp) * floatsingle.tofloat(this.mod('sp'))
     sp = floatsingle.tofloat(sp)
     sp = floatsingle.ceiling(sp)
     this.s1.charge(sp)
     this.s2.charge(sp)
     this.s3.charge(sp)
     if this.logsp:
         this.logsp(this.name, name, sp,
                 '%d/%d, %d/%d, %d/%d'%( \
                 this.s1.sp.cur, this.s1.sp.max,
                 this.s2.sp.cur, this.s2.sp.max,
                 this.s3.sp.cur, this.s3.sp.max)
                 )
     this.e_acl()
     if this.Skill.s_prev:
         this.Skill.s_prev = None
Exemple #3
0
 def float_problem(this, a):
     return floatsingle.tofloat(a)