| 
					
				 | 
			
			
				@@ -12,8 +12,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public int num; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public bool isOnceBonus; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        public Dictionary<int, int> AttributesDic = new Dictionary<int, int>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        delegate object MemberGetDelegate(ItemCfg p); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private Dictionary<int, int> AttributesDic = new Dictionary<int, int>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void Reset() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,6 +22,23 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AttributesDic.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public void SetAttributes(List<int> keys, List<int> values) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for(var i = 0; i < keys.Count; ++i) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SetAttribute(keys[i], values[i], false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public void SetAttribute(int key, int value, bool dispatch = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AttributesDic[key] = value; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(dispatch) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                EventAgent.DispatchEvent(ConstMessage.ITEM_ATTRIBUTE_CHANGED, id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public int MainScore 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             get 
			 |