181 lines
4.9 KiB
JavaScript
181 lines
4.9 KiB
JavaScript
/*:ja
|
|
* @target MZ
|
|
* @author ル
|
|
*
|
|
* @command ninshin
|
|
* @text 妊娠させる
|
|
* @des 妊娠
|
|
* @arg actorId
|
|
* @type number
|
|
* @text actorId
|
|
* @desc actorId
|
|
* @arg manId
|
|
* @type number
|
|
* @text manId
|
|
* @desc 直前のAVの男優の場合 0
|
|
*
|
|
* @command bote
|
|
* @text ボテ腹にさせる
|
|
* @des ボテ腹
|
|
* @arg actorId
|
|
* @type number
|
|
* @text actorId
|
|
* @desc actorId
|
|
*
|
|
* @command syusan
|
|
* @text 出産させる
|
|
* @des 出産
|
|
* @arg actorId
|
|
* @type number
|
|
* @text actorId
|
|
* @desc actorId
|
|
*
|
|
* @command ninshinSyusan
|
|
* @text 妊娠&出産させる
|
|
* @arg actorId
|
|
* @type number
|
|
* @text actorId
|
|
* @desc actorId
|
|
* @arg manId
|
|
* @type number
|
|
* @text manId
|
|
* @desc manId
|
|
*
|
|
* @command setTaneoyaName
|
|
* @text 種親の名前を29番の変数に設定
|
|
* @des 種親の名前を29番の変数に設定
|
|
* @arg actorId
|
|
* @type number
|
|
* @text actorId
|
|
* @desc actorId
|
|
*
|
|
* @command countSyusan
|
|
* @text 出産回数を26番の変数に設定
|
|
* @des 出産回数を26番の変数に設定
|
|
* @arg actorId
|
|
* @type number
|
|
* @text actorId
|
|
* @desc actorId
|
|
* @arg manId
|
|
* @type number
|
|
* @text manId
|
|
* @desc manId
|
|
*
|
|
* @command syusanFutago
|
|
* @text 双子出産用
|
|
* @des 双子出産用
|
|
* @arg actorId
|
|
* @type number
|
|
* @text actorId
|
|
* @desc actorId
|
|
*/
|
|
var Nore;
|
|
(function (Nore) {
|
|
var pluginName = "Nore_Syusan";
|
|
PluginManager.registerCommand(pluginName, "ninshin", function (args) {
|
|
var actorId = parseInt(args.actorId);
|
|
var manId = parseInt(args.manId);
|
|
if (manId <= 0) {
|
|
manId = $gameTemp.av.mainManId();
|
|
}
|
|
if ($gameTemp.av) {
|
|
if ($gameTemp.av.isContraception()) {
|
|
p("避妊の設定なので妊娠しませんでした");
|
|
return;
|
|
}
|
|
}
|
|
var actor = $gameActors.actor(actorId);
|
|
if (
|
|
actor.lastBaby() &&
|
|
actor.lastBaby().progress() != BabyProgress.syusan
|
|
) {
|
|
p("すでに受精中のため、妊娠できません");
|
|
return;
|
|
}
|
|
ninshin(actor, manId);
|
|
});
|
|
function ninshin(actor, manId) {
|
|
actor.ninshin(manId);
|
|
var time = actor.calcNinshinTime();
|
|
var e = new NinshinTimeGaugeEvent(actor.actorId(), time, manId);
|
|
$slg.addTimeGaugeEvent(e);
|
|
}
|
|
Nore.ninshin = ninshin;
|
|
PluginManager.registerCommand(pluginName, "bote", function (args) {
|
|
var actorId = parseInt(args.actorId);
|
|
var actor = $gameActors.actor(actorId);
|
|
if (actor.lastBaby().progress() != BabyProgress.jusei) {
|
|
console.error("受精中になっていません");
|
|
return;
|
|
}
|
|
actor.lastBaby().setBote();
|
|
actor.setBote(1);
|
|
});
|
|
PluginManager.registerCommand(pluginName, "syusan", function (args) {
|
|
var actorId = parseInt(args.actorId);
|
|
var actor = $gameActors.actor(actorId);
|
|
if (actor.lastBaby().progress() != BabyProgress.bote) {
|
|
console.error("子供がボテ腹になっていません");
|
|
}
|
|
actor.lastBaby().syusan();
|
|
actor.setBote(0);
|
|
actor.onSyusan();
|
|
});
|
|
PluginManager.registerCommand(pluginName, "setTaneoyaName", function (args) {
|
|
var actorId = parseInt(args.actorId);
|
|
var actor = $gameActors.actor(actorId);
|
|
if ($gameSystem.isRecollection() && !actor.lastBaby()) {
|
|
var taneId = 73;
|
|
$gameVariables.setValue(29, $gameActors.actor(taneId).name());
|
|
$gameVariables.setValue(30, taneId);
|
|
$gameVariables.setValue(26, 2);
|
|
return;
|
|
}
|
|
if (!$gameSystem.isRecollection()) {
|
|
if (
|
|
actor.lastBaby().progress() != BabyProgress.bote &&
|
|
actor.lastBaby().progress() != BabyProgress.jusei
|
|
) {
|
|
console.error("妊娠していません");
|
|
}
|
|
}
|
|
var name = actor.lastBaby().taneoyaName();
|
|
$gameVariables.setValue(29, name);
|
|
$gameVariables.setValue(30, actor.lastBaby().taneoyaId());
|
|
$gameVariables.setValue(26, actor.babyList().length);
|
|
});
|
|
PluginManager.registerCommand(pluginName, "ninshinSyusan", function (args) {
|
|
var actorId = parseInt(args.actorId);
|
|
var manId = parseInt(args.manId);
|
|
var actor = $gameActors.actor(actorId);
|
|
actor.ninshin(manId);
|
|
actor.lastBaby().setBote();
|
|
actor.lastBaby().syusan();
|
|
});
|
|
PluginManager.registerCommand(pluginName, "countSyusan", function (args) {
|
|
var actorId = parseInt(args.actorId);
|
|
var manId = parseInt(args.manId);
|
|
var actor = $gameActors.actor(actorId);
|
|
if ($gameSystem.isRecollection()) {
|
|
$gameVariables.setValue(26, 1);
|
|
$gameVariables.setValue(27, 2);
|
|
return;
|
|
}
|
|
var count = actor.countSyusanMan(manId);
|
|
$gameVariables.setValue(26, count);
|
|
$gameVariables.setValue(27, count + 1);
|
|
});
|
|
PluginManager.registerCommand(pluginName, "syusanFutago", function (args) {
|
|
var actorId = parseInt(args.actorId);
|
|
var manId = 71;
|
|
var actor = $gameActors.actor(actorId);
|
|
actor.ninshin(manId);
|
|
actor.lastBaby().setBote();
|
|
actor.lastBaby().syusan();
|
|
actor.onSyusan();
|
|
actor.ninshin(manId);
|
|
actor.lastBaby().setBote();
|
|
actor.lastBaby().syusan();
|
|
actor.onSyusan();
|
|
});
|
|
})(Nore || (Nore = {}));
|