Template:Soul Fusion

'''This template does NOT work. It was pulled from Blood Brothers 2 and needs to be updated with Deckstorm calculations and stats (adding MagATK, Speed, and MagDEF)'''

There's a lot of code, which is very hard to read (No Java, No C, settled with Robots), but the main idea is quite simple: if there's parameter which was passed to this template (e.g. fusionhprace) we should use it, else calculate parameter inside this template as it's done before. In C-like syntax it may be written as: if (fusionhprace != null) if (fusionhprace == "none") // This check performs for affinity and race return null; else return fusionhprace; else return doOldProcessing; Notice that each parameter from the following list may not be set. In this case it will be calculated automatically based on other parameters values: fusionhpboost - fusionhprarity - fusionhprace - fusionhpaffinity fusionatkboost - fusionatkrarity - fusionatkrace - fusionatkaffinity fusiondefboost - fusiondefrarity - fusiondefrace - fusiondefaffinity fusionwisboost - fusionwisrarity - fusionwisrace - fusionwisaffinity You can change names inside this template but do not forget to change it inside Commander template. The names seem to be case sensitive. Information about syntax of expressions can be found at MediaWiki.