1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | using System.Collections.Generic; 
 |  using System.Linq; 
 |    
 |  public partial class HeroInfo 
 |  { 
 |      //继承百分比对应三围,对应属性条目表里的ID 
 |      Dictionary<int, int> inheritPer 
 |      { 
 |          get 
 |          { 
 |              return new Dictionary<int, int>() { 
 |                  { 6, heroConfig.AtkInheritPer }, 
 |                  { 7, heroConfig.DefInheritPer }, 
 |                  { 8, heroConfig.HPInheritPer }, 
 |              }; 
 |          } 
 |      } 
 |       
 |      public int GetInheritAttrPer(int attrType) 
 |      { 
 |          return inheritPer.ContainsKey(attrType) ? inheritPer[attrType] : 0; 
 |      } 
 |       
 |  } 
 |  
  |