Site Tools


Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
bugs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bugs [2018/11/12 23:23] (current)
Line 1: Line 1:
 +======Bekannte Bugs====== 
 +====Comfort-Funktionen==== 
 +=== Inflation / Deflation === 
 +==Bug-Beschreibung== 
 +Die Funktionen zum Setzen der Inflation und der Deflation funktionieren nicht (richtig): Die Inflations-Funktionen führen zu einer Lua-Ausnahme,​ die Deflations-Funktionen setzen die Inflation. 
 +==Lösung== 
 +<code lua>​function SetResourceDeflation(_player,​ _resourceType,​ _value) 
 +    if not _value then 
 +        _value = _player; 
 +        _player = GUI.GetPlayerID();​ 
 +    end 
 +  
 +    Logic.SetCurrentDeflation(_player,​ _resourceType,​ _value); 
 +end 
 +  
 +function SetResourceInflation(_player,​ _resourceType,​ _value) 
 +    if not _value then 
 +        _value = _player; 
 +        _player = GUI.GetPlayerID();​ 
 +    end 
 +  
 +    Logic.SetCurrentInflation(_player,​ _resourceType,​ _value); 
 +end</​code>​
bugs.txt · Last modified: 2018/11/12 23:23 (external edit)