ソースを参照

Fixes for Occurrence

own3mall 8 年 前
コミット
6944cafd4d

+ 1 - 0
modules/config_games/schema_server_config.xml

@@ -202,6 +202,7 @@
       <xs:element name="var" type="xs:string" />
       <xs:element name="filepath" type="xs:string" />
       <xs:element name="options" type="xs:string" />
+      <xs:element name="occurrence" type="xs:string" minOccurs="0" />
       <xs:element name="desc" type="xs:string" maxOccurs="1" />
     </xs:choice>
     <xs:attribute name="id" type="xs:string" />

+ 4 - 0
modules/gamemanager/cfg_text_replace.php

@@ -71,6 +71,8 @@ if($replace_texts)
 				$replacements[$replace_id]['filepath'] = (string)$value;
 			if ($key == "options")
 				$replacements[$replace_id]['options'] = (string)$value;
+			if ($key == "occurrence")
+				$replacements[$replace_id]['occurrence'] = (string)$value;
 		}
 		$replace_id++;
 	}
@@ -99,6 +101,8 @@ if($fields)
 				$replacements[$replace_id]['filepath'] = (string)$value;
 			if ($key == "options")
 				$replacements[$replace_id]['options'] = (string)$value;
+			if ($key == "occurrence")
+				$replacements[$replace_id]['occurrence'] = (string)$value;
 		}
 		$replace_id++;
 	}