`RandomChance` type, and two new item fields: `MagicEffectChance`, `MagicEffectDuration`
commit7c4828b3906509045537ddc083162fcd327d416e
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 31 Oct 2017 05:15:07 +0000 (31 07:15 +0200)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 31 Oct 2017 05:15:07 +0000 (31 07:15 +0200)
treeccb050452a9c40d2d293fc7b3c146912e7f925ee
parent84fec4cdd797f5587b4a266ee32415f8e75c693e
`RandomChance` type, and two new item fields: `MagicEffectChance`, `MagicEffectDuration`

  for now they're used only in `slowaxe`.
  the syntax is:
    MagicEffectChance == 3; // will do !(RAND()%3)
    MagicEffectDuration = { rand: 200; add: 400; } // 400+RAND_N(200)
script/_default/items/slowaxe.dat
script/item.dat
src/felib/femath.h
src/felib/feparse.cpp
src/felib/feparse.h
src/game/char.cpp
src/game/database.cpp
src/game/gears/meleeweapon_slowaxe.cpp
src/game/item.h
src/game/ivancommon.cpp