Jump to content

Elin:Code Analysis/Faith: Difference between revisions

Line 109: Line 109:
* If the item is decayed (rotten), the offer value is further divided by 10.
* If the item is decayed (rotten), the offer value is further divided by 10.
* The offer value will '''increase by 2%''' per each level of the item. (See in resource/things/LV. Meat and most items are LV 1, most equipments range from 10-20, rarest at lv 60)
* The offer value will '''increase by 2%''' per each level of the item. (See in resource/things/LV. Meat and most items are LV 1, most equipments range from 10-20, rarest at lv 60)
 
** ...At least that is what SUPPOSED TO HAPPEN! Because C# treat divide operator between two integers as round down to an int, instead of creating a float number, this code basically does ABSOLUTELY NOTHING when LV < 50.
<syntaxhighlight lang="c#" line="1">
<syntaxhighlight lang="c#" line="1">
public void _OnOffer(Chara c, Thing t, int takeoverMod = 0)
public void _OnOffer(Chara c, Thing t, int takeoverMod = 0)
362

edits