赞 | 160 |
VIP | 0 |
好人卡 | 3 |
积分 | 161 |
经验 | 39823 |
最后登录 | 2025-1-12 |
在线时间 | 3998 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 16134
- 在线时间
- 3998 小时
- 注册时间
- 2015-9-14
- 帖子
- 1337
|
簡單物品售價,作者MrTS網址:https://mrtrivelrpg.wordpress.com/2016/03/15/simple-item-sell-price/
- //=============================================================================
- // MrTS_SimpleItemPrice.js
- //=============================================================================
- /*:
- * @plugindesc Allows to set default sell price in note tags.
- * @author Mr. Trivel
- *
- * @help
- * --------------------------------------------------------------------------------
- * Terms of Use
- * --------------------------------------------------------------------------------
- * Don't remove the header or claim that you wrote this plugin.
- * Credit Mr. Trivel if using this plugin in your project.
- * Free for commercial and non-commercial projects.
- * --------------------------------------------------------------------------------
- * Version 1.0
- * --------------------------------------------------------------------------------
- *
- * --------------------------------------------------------------------------------
- * Item/Weapon/Armor Tags
- * --------------------------------------------------------------------------------
- * <SellPrice: [PRICE]>
- * [PRICE] - default sell price.
- *
- * E.g.:
- * <SellPrice: 9999>
- * <SellPrice: 2000>
- * --------------------------------------------------------------------------------
- *
- * --------------------------------------------------------------------------------
- * Version History
- * --------------------------------------------------------------------------------
- * 1.0 - Release
- */
- (function() {
- var _SceneShop_sellingPrice = Scene_Shop.prototype.sellingPrice;
- Scene_Shop.prototype.sellingPrice = function() {
- if (this._item.meta.SellPrice)
- return Number(this._item.meta.SellPrice)
- else
- return _SceneShop_sellingPrice.call(this);
- };
- })();
复制代码 |
|