=begin #============================================================================== ** Feature: TP Cost Rate Author: Hime Date: Oct 13, 2012 ------------------------------------------------------------------------------ ** Change log Oct 13, 2012 - initial release ------------------------------------------------------------------------------ ** Terms of Use * Free to use in non-commercial projects * Contact me for commercial use * No real support. The script is provided as-is * Will do bug fixes, but no compatibility patches * Features may be requested but no guarantees, especially if it is non-trivial * Preserve this header ------------------------------------------------------------------------------ ** Required -Feature Manager (http://xtsukihime.com/2012/10/13/feature-manager/) ------------------------------------------------------------------------------ Modifies TP Cost for all skills. Analogous to mcr, which is the MP cost rate. Tag objects with For some float x. The cost of a skill is equal to `skill.tp_cost * tpcr` #============================================================================== =end $imported = {} if $imported.nil? $imported["Feature_TPCostRate"] = true #============================================================================== # ** Rest of the script #============================================================================== module Features module TP_Cost_Rate FeatureManager.register(:tpcr) end end class RPG::BaseItem def add_feature_tpcr(code, data_id, args) data_id = 0 value = args[0].to_f add_feature(code, data_id, value) end end class Game_BattlerBase def tpcr features_pi(:tpcr, 0) end alias :ft_tpcr_tp_cost :skill_tp_cost def skill_tp_cost(skill) (ft_tpcr_tp_cost(skill) * tpcr).to_i end end