Enable linear cost for planning actions instead of static pre-assigned cost value.

Signed-off-by: shujingke <rainkekekeke@gmail.com>