17173首页 - 免费新游 - 火爆论坛 - 游戏博客 - 游戏播客 - 百科问答 - 网游排行榜 - 网游期待榜
| 通行证 注册
17173奇迹世界小贴士[按F5查看下一条]: 
17173奇迹世界 > > 玩家稿件 >>
测试智精法师和精智法师的攻击力
2008-02-14            [发表评论] [文章投稿] [截图上传] [加入收藏]
作者: 17173 关键字:

  由于本人上班,没有时间玩,所以因菜鸟身份不敢胡言乱语,一直处于潜水状态。只在台服有个24级小攻法。因为玩的是攻法,所以看论坛上关于攻法的后期练法也出现了两种不同的说法——精智、智精(如果你想练智力元素,那么你就没有必要往后看了)。练这两种法师可以说各有好处,精智法师蓝比较充裕,暴击高;智精法师攻击高。但是到底哪种法师才是大家的首选呢?今天闲来无事,利用自己的专业知识(软件开发)按照不拉齐恩的计算公式和瞭望塔的各种信息写了下面的这个程序,用来测试精智法师和智精法师的攻击力。
  /**
  *测试智精法师和精智法师的攻击力。
  *作者:ayuayufan
  *版本:1.0
  *日期:2007-2-9
  */
  class Sorceress{
  //基本属性定义
  private int men;//智力
  private int ins;//精神
  private int level;//等级
  private int skillpoint;//技能熟练度

  public final int MAGIC_MIN_DAM=5;//魔法最小攻击力
  public final int MAGIC_MAX_DAM=8;//魔法最大攻击力
  public final int DEATH_HIT_NUM=28;//角色致命一击固定数值

  private int skilldam=0;//技能攻击力
  private int superaddition=0;//技能追加攻击力
  private double more_dam_persent=0;//技能追加伤害百分比
  private int skill_level=0;//技能等级

  private int target_level;//目标等级
  private int magic_recovery;//目标魔法防御力

  public String DeathHit="";

  //初始化
  public Sorceress(int men,int ins,int level,int skillpoint){
  this.men=men;
  this.ins=ins;
  this.level=level;
  this.skillpoint=skillpoint;
  }

  //设定技能攻击力
  public void setSkillDam(int skilldam){
  this.skilldam=skilldam;
  }

  //设定技能追加攻击力
  public void setSuperAddition(int superaddition){
  this.superaddition=superaddition;
  }

  //设定技能追加伤害百分比
  public void setMoreDamPersent(double more_dam_persent){
  this.more_dam_persent=more_dam_persent;
  }

  //设定技能等级
  public void setSkillLevel(int skill_level){
  this.skill_level=skill_level;
  }

  //设定目标等级
  public void setTargetLevel(int target_level){
  this.target_level=target_level;
  }

  //设定目标魔法防御力
  public void setMagicRecovery(int magic_recovery){
  this.magic_recovery=magic_recovery;
  }

  //得到魔法基本最小攻击力
  public int getMagicBaseMinDam(){
  return men/3+MAGIC_MIN_DAM+superaddition;
  }

  //得到魔法基本最大攻击力
  public int getMagicBaseMaxDam(){
  return men/2+MAGIC_MAX_DAM+superaddition;
  }

  //得到魔法技能基本最小攻击力
  public double getSkillBaseMinDam(){
  return (this.getMagicBaseMinDam()+skilldam+skillpoint/3)*(1+more_dam_persent);
  }

  //得到魔法技能基本最大攻击力
  public double getSkillBaseMaxDam(){
  return (this.getMagicBaseMaxDam()+skilldam+skillpoint/3)*(1+more_dam_persent);
  }

  //伤害差别率
  public double getA(){
  return (80+target_level*6-magic_recovery)/(750+target_level*2)+0.7+(level-target_level)*0.03;
  }

  //最终伤害
  public double getFinalDam(){
  return getSkillBaseMinDam()+(getSkillBaseMaxDam()-getSkillBaseMinDam())*this.getA()*Math.random();
  }


  //致命一击伤害
  public double getDeathHitDam(){
  double damage=this.getFinalDam();
  return damage*1.2+Math.random()*damage*0.5;
  }

  //是否出现致命一击
  public boolean isDeathHit(){
  int temp1=ins/2+skill_level+DEATH_HIT_NUM;
  int temp2=25+this.target_level*8;
  return 1+Math.random()*(temp2-1)<=temp1;
  }
  //得到最后伤害
  public double getDam(){
  if(isDeathHit()){
  this.DeathHit=" DeathHit!";
  return getDeathHitDam();
  }else{
  this.DeathHit="";
  return getFinalDam();      
  }      
  }
  }

  public class Sun{
  public static void main(String[] args){
  Sorceress sr1=new Sorceress(95,42,60,200);//智精法师
  //设定技能--岩石风暴(追加伤害表现为持续掉血,不计算至公式内)
  sr1.setSkillDam(297);
  sr1.setSkillLevel(10);
  //设定怪物参数--60级寒冰法师
  sr1.setTargetLevel(60);
  sr1.setMagicRecovery(417);
  double damtotal1=0;
  for(int i=0;i<50;i++){
  double damage1=sr1.getDam();
  System.out.println(damage1+sr1.DeathHit);
  damtotal1+=damage1;
  }
  System.out.println("最终累计伤害为"+damtotal1);


  Sorceress sr2=new Sorceress(45,92,60,200);//精智法师
  //设定技能--岩石风暴(追加伤害表现为持续掉血,不计算至公式内)
  sr2.setSkillDam(297);
  sr2.setSkillLevel(10);
  //设定怪物参数--60级寒冰法师
  sr2.setTargetLevel(60);
  sr2.setMagicRecovery(417);
  double damtotal2=0;
  for(int i=0;i<50;i++){
  double damage2=sr2.getDam();
  System.out.println(damage2+sr2.DeathHit);
  damtotal2+=damage2;
  }
  System.out.println("最终累计伤害为"+damtotal2);
  }
  }

  通过对程序获取到的数据的分析(下面会帖出来),可以发现,在对同等级的怪进行攻击时,智精法师和精智法师的攻击及其相近!甚至在有的数据中精智法师的攻击要高过智精法师!而由于精智法师先天的优势(蓝多,回复快,装备便宜),可以得出这样的结论,精智法师的攻击不输给智精法师,而持续攻击的能力要比智精法师强很多,因此,精智法师是我们后期的首选发展方向!

  以下都是在特定条件下,50次对怪物打击得到的伤害及伤害总和。50次打击应该对一些概率的出现有了一个比较平均的体现。
  ############
  60级角色  对  60级寒冰法师
  ############
  410.584389365777
  406.8994066764808
  399.61601503950686
  405.5254255903275
  565.6184403509335 DeathHit!
  405.25449292062916
  401.4386301906752
  545.5128624949456 DeathHit!
  411.96282428141546
  402.8721331725056
  410.6655892537631
  410.2257169447632
  408.921135204806
  405.0140856352694
  400.7770352672708
  409.2519037476219
  411.50811726749464
  404.4615384220994
  401.991005517897
  403.1636609322969
  401.8557818056153
  407.0289722885784
  411.90926487807656
  411.68111103388355
  404.88192569469044
  401.09362258569587
  412.02360114099474
  410.3423405008501
  408.4619340582423
  399.55860087459826
  406.9418697678954
  403.77842295453314
  403.6845504262809
  623.5854383645112 DeathHit!
  404.3130582818017
  400.70422141686464
  412.050133426218
  401.0375332923188
  401.53626611505024
  673.3227607900659 DeathHit!
  570.8516723628447 DeathHit!
  406.5814036397008
  406.09384952239697
  408.2726786672465
  628.4293902793951 DeathHit!
  411.97334447781657
  403.3791443502083
  402.51429004581644
  412.101724522302
  402.701646099056
  智精最终累计伤害为21473.95496194003
  388.70119205351546
  388.2832804703204
  386.1014938175444
  385.43971099551555
  388.91368530039966
  388.59014887184173
  389.0482652196281
  385.12913503822296
  387.801299679135
  389.4193691402787
  386.10553489229187
  386.71071027907175
  383.4686576181826
  385.43234558842653
  385.95096745786685
  386.9169334474422
  388.37750047798437
  385.1926789328087
  543.7590329184168 DeathHit!
  387.7320134515922
  388.23202053399154
  578.8603917231054 DeathHit!
  385.41509281016033
  383.95223350884254
  388.84706523810104
  385.98498287893517
  387.6413241363636
  389.15213419229786
  385.0714102216574
  386.7094282619836
  387.2369671957964
  387.5843143609946
  389.73898864283194
  383.8136972975497
  387.71202671516363
  389.64405090539566
  473.06780779128064 DeathHit!
  491.3732185464588 DeathHit!
  383.07080926630664
  387.3396830612507
  383.9362611807981
  604.9389232769165 DeathHit!
  388.194829577975
  628.7286022494786 DeathHit!
  387.0884384974828
  383.5825023244511
  499.52371564552556 DeathHit!
  385.8213018844132
  386.09176438431996
  486.4268846471704 DeathHit!
  精智最终累计伤害为20551.854826607487

  #####################
  #100级角色  对  level45   雪原步兵
  #####################

  494.06153560048557
  659.7014476491038 DeathHit!
  463.51217271266603
  724.0954844007426 DeathHit!
  464.3688257802507
  708.33974024839 DeathHit!
  710.4425618144287 DeathHit!
  445.55779358742274
  513.4635987946401
  450.3713504557926
  640.5973345648476 DeathHit!
  439.07843997651014
  452.22891101554524
  446.12119688886185
  488.95521968509854
  516.1268664169924
  839.8170976068322 DeathHit!
  525.7519165694763
  594.9834710835246 DeathHit!
  455.7584481811714
  701.0489954965096 DeathHit!
  449.75761082240854
  507.3900512990238
  503.5979732319226
  462.6293841494813
  444.39180290138034
  504.77991833358993
  488.80229777684985
  538.6228713417889 DeathHit!
  467.15033729124593
  794.1328355030047 DeathHit!
  514.267988409994
  455.3123634329461
  450.9093810528023
  477.83343813153886
  473.1387434954069
  440.58050143629794
  464.5519601148846
  494.87545390177223
  516.9124150123196
  645.8333201079008 DeathHit!
  498.258546545304
  466.985760806509
  517.9880670980806
  446.64222836009134
  521.2399442310169
  520.6491384132328
  596.3180919197429 DeathHit!
  461.9388450397496
  441.87987405038695
  智精最终累计伤害为26301.753552739974
  583.1673057279143 DeathHit!
  428.76512140209775
  453.5809531436506
  431.7384927614156
  633.4173517084258 DeathHit!
  432.2942558218568
  461.8729717313064
  466.52190096294413
  665.8351405850335 DeathHit!
  454.67691860034597
  650.6119208070147 DeathHit!
  587.6065106596812 DeathHit!
  464.28511461575175
  440.37700096209846
  611.9944784442608 DeathHit!
  422.55316403535033
  522.200022458192 DeathHit!
  721.8114034074576 DeathHit!
  725.9181673146477 DeathHit!
  436.42868914480795
  444.56368659826455
  472.0330349423164
  427.59173113308844
  425.71610362871587
  731.947023128414 DeathHit!
  450.1627848715135
  419.2109078300872
  448.9877433063906
  717.2694894412369 DeathHit!
  457.8071445569161
  452.84320747499936
  763.5802364753072 DeathHit!
  434.8813605269421
  470.07054954516303
  432.20353809171183
  463.71240898475435
  617.7104496973205 DeathHit!
  691.2071594103076 DeathHit!
  439.2669753173503
  427.5667670024517
  445.51327881496286
  430.25674608229446
  573.4493725867576 DeathHit!
  735.4986917174143 DeathHit!
  554.2657252245987 DeathHit!
  584.6735065089232 DeathHit!
  641.9297013973621 DeathHit!
  745.5512606671917 DeathHit!
  603.2806841408643 DeathHit!
  630.2051691798373 DeathHit!
  精智最终累计伤害为26728.61332257771

  #######################
  #100级角色  对  level60   寒冰法师
  #######################
  599.6517049902283 DeathHit!
  491.20281538901173
  498.7372996745497
  504.1004409681723
  613.625425707654 DeathHit!
  507.07283748780446
  771.5343913383598 DeathHit!
  492.9885825181566
  502.93879866643255
  507.7083382421443
  471.74364654577596
  482.41493268339934
  467.88069754573905
  453.0251363303705
  468.83123815130466
  482.4331913355173
  691.393197814542 DeathHit!
  477.0914837012721
  446.7565051632699
  481.73346973785374
  438.0942111659152
  455.1073335230164
  440.25640659261916
  502.64950880236665
  488.80518528286575
  477.86055559311956
  459.04025451577405
  471.9011248552409
  471.743667154788
  710.9264358274872 DeathHit!
  495.0482698688835
  652.7686122244219 DeathHit!
  453.51399085095716
  670.7165510949131 DeathHit!
  445.6829294326956
  505.3342646303212
  495.5646032245449
  708.4468164676796 DeathHit!
  497.09796487244773
  481.2461972034853
  459.51305157011404
  488.0102007348163
  505.2772329603256
  472.98608400301794
  455.08778819231696
  638.6823043445457 DeathHit!
  440.5262904252331
  488.78387106415556
  470.96193249658825
  470.91502453629005
  智精最终累计伤害为25625.412797502504
  418.6413097369495
  678.8973553834778 DeathHit!
  440.32638812648173
  430.2397249229801
  525.01968801717 DeathHit!
  659.2407169646136 DeathHit!
  714.5031876882227 DeathHit!
  424.38922954566783
  420.4784785362759
  448.7460222768197
  454.91399440881224
  424.4160399032656
  669.7756213987498 DeathHit!
  443.9114853000834
  428.9060724909679
  451.0096786430663
  460.5013454656986
  432.4048786251639
  416.9313662815805
  435.8250146506419
  424.34736515150513
  454.9275808086609
  646.449773829514 DeathHit!
  738.8501926200989 DeathHit!
  429.97206643516887
  656.6399745540432 DeathHit!
  440.8458959204289
  453.36548038724527
  531.0448452041746 DeathHit!
  418.76197837519464
  419.90631198358375
  595.5208832115659 DeathHit!
  460.00297044748
  418.69396624641877
  451.5080048625402
  442.4122387081058
  427.08770782661446
  423.4370277427132
  684.2159798898974 DeathHit!
  513.1844241287539 DeathHit!
  447.1043709512644
  451.45951854325364
  415.556569419987
  694.1748103005921 DeathHit!
  450.47732673746145
  436.10966241371955
  448.02024625322616
  717.8695164397755 DeathHit!
  448.6064824933538
  435.68144343654023
  精智最终累计伤害为24755.31221368956

 

相关链接

游戏截图
用户: 匿名
史上最强的拼音输入法 下载>>>
评论

我要发布Sogou推广服务

热点标签:
新闻 标题 栏目 文章 图片 链接
热点标签:
新闻 标题 栏目 文章 图片 链接
玩家照片

叮叮小羽