M_game_battle_field.ts 895 B

12345678910111213141516171819202122
  1. // ID:ID, monster_id:怪物ID, scene_type:场地类型, weight:出场权重, max_num:最大数量, kill_count:击杀次数, award_drop_prob:魔币掉落概率(百分比)
  2. export default class M_game_battle_field {
  3. private static data =
  4. {"1001":{"ID":1001,"monster_id":1001,"scene_type":1,"weight":20,"max_num":2000,"kill_count":[1,1],"award_drop_prob":0.25}
  5. ,"1002":{"ID":1002,"monster_id":1002,"scene_type":1,"weight":20,"max_num":2000,"kill_count":[2,3],"award_drop_prob":0.33}
  6. }// ID:ID, monster_id:怪物ID, scene_type:场地类型, weight:出场权重, max_num:最大数量, kill_count:击杀次数, award_drop_prob:魔币掉落概率(百分比)
  7. static getData(key: any): any {
  8. if (key == null || key == undefined)
  9. return null;
  10. return this.data[key];
  11. }
  12. static getAllData(): any {
  13. return this.data;
  14. }
  15. }