Advertisement
ICF-Soft

ICF-Soft Time Utility 1.03 RPG Maker MV

Aug 27th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // ICF-Soft Plugins - Time Utility
  3. // ICFSoft_TimeUtil.js
  4. //=============================================================================
  5.  
  6. var Imported = Imported || {};
  7. Imported.ICFSoft_TimeUtil = true;
  8.  
  9. var ICF = ICF || {};
  10. ICF.TimeUtil = ICF.TimeUtil || {};
  11.  
  12. ICF.TimeUtil.Version = 103; // 1.03
  13.  
  14. //=============================================================================
  15.  /*:
  16.  * @plugindesc v1.03 This plugin stores date and time in game variables
  17.  * for diverse pourposes.
  18.  * @author ICF-Soft [http://icfsoft.blogspot.com.es/]
  19.  *
  20.  * @param Year Var
  21.  * @desc A variable where store year.
  22.  * @default 0
  23.  *
  24.  * @param Month Var
  25.  * @desc A variable where store month from 1 to 12.
  26.  * @default 0
  27.  *
  28.  * @param Day Var
  29.  * @desc A variable where store day from 1 to 31.
  30.  * @default 0
  31.  *
  32.  * @param Hour Var
  33.  * @desc A variable where store hour.
  34.  * @default 0
  35.  *
  36.  * @param Minute Var
  37.  * @desc A variable where store minute.
  38.  * @default 0
  39.  *
  40.  * @param Week Var
  41.  * @desc A variable where store the day of the week.
  42.  * Week starts with Sunday as 0.
  43.  * @default 0
  44.  *
  45.  * @param Month and day
  46.  * @desc A variable where store a month and day combination.
  47.  * @default 0
  48.  *
  49.  * @param Hour and minutes
  50.  * @desc A variable where store a hour and minutes combination.
  51.  * @default 0
  52.  *
  53.  * @param Time travel
  54.  * @desc A variable where store a time offset.
  55.  * @default 0
  56.  *
  57.  * @param Fixed Month and day
  58.  * @desc All days you want to check separated with spaces.
  59.  * Must be month and day combination (see help).
  60.  * @default 101 102
  61.  *
  62.  * @param Fixed Integer checks
  63.  * @desc Respective integers to store if there is dates are.
  64.  * @default 0 0
  65.  *
  66.  * @param Variable Month and day
  67.  * @desc All variables where days you want to check are stored separated
  68.  * with spaces. Must be stored as month and day combination (see help).
  69.  * @default
  70.  *
  71.  * @param Variable Integer checks
  72.  * @desc Respective integers to store if there is dates are.
  73.  * @default 0
  74.  *
  75.  * @help
  76.  * ============================================================================
  77.  * Introduction
  78.  * ============================================================================
  79.  *
  80.  * There are games where special things happen on specific day of the week,
  81.  * specific hour, specific day, and so on.
  82.  * There are games where time continues even when off.
  83.  *
  84.  * With this plugin you can do both.
  85.  *
  86.  * Time is stored in game variables and can be used inside events. Also uses
  87.  * switches to check specified days. Automatically updates on map changes, but
  88.  * can also be updated manually.
  89.  *
  90.  * Also you can store time and check how many real time has passed.
  91.  * Time is stored as minutes.
  92.  *
  93.  * ============================================================================
  94.  * Parameters
  95.  * ============================================================================
  96.  *
  97.  * There are six basic params to store current year, day, hour, etc.
  98.  * These params indicate what variables will be used to store that info.
  99.  * To skip a param put 0.
  100.  *
  101.  * Month and day comes in a special format because events can use only one
  102.  * variable per page. So it needs a combined one. Is Month*100 + Day.
  103.  * Some Month-Day Examples:
  104.  *   -  101: January 1st
  105.  *   -  102: January 2nd
  106.  *   -  201: February 1st
  107.  *   -  211: February 11th
  108.  *   - 1001: October 1st
  109.  *   - 1010: October 10th
  110.  *
  111.  * Hours and minutes works as month and day does. Is Hour*100 + minute.
  112.  *
  113.  * Fixed Month and day: To check specified days sepparated by spaces.
  114.  * It's combined with next parameter.
  115.  *
  116.  * Fixed Integer checks: Switchs sepparated by spaces. There is a switch
  117.  * for every fixed date. When day is met it's switch becomes on, when not
  118.  * it's switch becomes off.
  119.  *
  120.  * Variable Month and day: To check inside specified variable a day.
  121.  * It can be used to store a day ingame and check when is met. Example: B-Day
  122.  * Variables are sepparated by spaces.
  123.  *
  124.  * Variable Integer checks: Switchs sepparated by spaces. There is a switch
  125.  * for every variable. When stored day is met it's switch becomes on, when
  126.  * not it's switch becomes off.
  127.  *
  128.  * ============================================================================
  129.  * Plugin commands
  130.  * ============================================================================
  131.  *
  132.  * GetTime x
  133.  *
  134.  *  - To store a time into variable number 'x'.
  135.  *
  136.  * GetTimeSince x y
  137.  * GetHoursSince x y
  138.  * GetDaysSince x y
  139.  *
  140.  *  - To compare how much time passed since 'x' in minutes, hours or days
  141.  *    and store result in variable 'y'.
  142.  *
  143.  * UpdateTime
  144.  *
  145.  *  - To update time variables manually.
  146.  *
  147.  * GoPresent [true]
  148.  *  - To reset time. Returning to present.
  149.  *  - Optional: placing 'true' will update map automatically.
  150.  *    
  151.  * AdvanceTime x [true]
  152.  * AdvanceDays x [true]
  153.  * AdvanceYears x [true]
  154.  *  - To advance x minutes, days or years in time (can be negative).
  155.  *  - Optional: placing 'true' will update map automatically.
  156.  *
  157.  * ============================================================================
  158.  * Scripting functions
  159.  * ============================================================================
  160.  *
  161.  * For those who prefer scripting over plugin commands there are the
  162.  * alternate versions.
  163.  *
  164.  * ICF.TimeUtil.GetTime(x)
  165.  * ICF.TimeUtil.GetTimeSince(x, y)
  166.  * ICF.TimeUtil.GetHoursSince(x, y)
  167.  * ICF.TimeUtil.GetDaysSince(x, y)
  168.  * ICF.TimeUtil.GetDate()
  169.  * ICF.TimeUtil.GoPresent(x)
  170.  * ICF.TimeUtil.AdvanceTime(x, true)
  171.  * ICF.TimeUtil.AdvanceDays(x, true)
  172.  * ICF.TimeUtil.AdvanceYears(x, true)
  173.  *
  174.  * ============================================================================
  175.  * Incompatibilities
  176.  * ============================================================================
  177.  *
  178.  * There's no known incompatible plugins yet.
  179.  *
  180.  * ============================================================================
  181.  * Known isues
  182.  * ============================================================================
  183.  *
  184.  * There's no known isues yet.
  185.  *
  186.  * ============================================================================
  187.  * Changelog
  188.  * ============================================================================
  189.  *
  190.  * Version 1.03:
  191.  * - Use of ICF-Soft Main Utility.
  192.  * - Added hour and minutes combination.
  193.  *
  194.  * Version 1.02:
  195.  * - Added day check with switchs.
  196.  *
  197.  * Version 1.01:
  198.  * - Added time travel utility.
  199.  *
  200.  * Version 1.00:
  201.  * - Finished plugin!
  202.  *
  203.  * ============================================================================
  204.  *
  205.  * For commercial and non-commercial games.
  206.  * Credit to ICF-Soft.
  207.  * This entire header must be included with plugin.
  208.  *
  209.  * ============================================================================
  210. */
  211. //=============================================================================
  212.  /*:es
  213.  * @plugindesc v1.03 Este complemento almacena la fecha y hora en las variables
  214.  * del juego para diversos propósitos.
  215.  * @author ICF-Soft [http://icfsoft.blogspot.com.es/]
  216.  *
  217.  * @param Year Var
  218.  * @desc La variable donde almacenas el año.
  219.  * @default 0
  220.  *
  221.  * @param Month Var
  222.  * @desc La variable donde almacenas el mes (de 1 a 12).
  223.  * @default 0
  224.  *
  225.  * @param Day Var
  226.  * @desc La variable donde almacenas el día (de 1 a 31).
  227.  * @default 0
  228.  *
  229.  * @param Hour Var
  230.  * @desc La variable donde almacenas la hora.
  231.  * @default 0
  232.  *
  233.  * @param Minute Var
  234.  * @desc La variable donde almacenas los minutos.
  235.  * @default 0
  236.  *
  237.  * @param Week Var
  238.  * @desc La variable donde almacenas el día de la semana.
  239.  * La semana empieza con el domingo como 0.
  240.  * @default 0
  241.  *
  242.  * @param Month and day
  243.  * @desc Una variable especial donde se almacena una combinación de mes y día.
  244.  * @default 0
  245.  *
  246.  * @param Hour and minutes
  247.  * @desc Una variable especial donde se almacena una combinación de horas
  248.  * y minutos.
  249.  * @default 0
  250.  *
  251.  * @param Time travel
  252.  * @desc Una variable en donde almacenar el salto en el tiempo.
  253.  * @default 0
  254.  *
  255.  * @param Fixed Month and day
  256.  * @desc Los días que quieres comprobar separados por espacios.
  257.  * Debe ser combinación mes-día (ver ayuda).
  258.  * @default 101 102
  259.  *
  260.  * @param Fixed Integer checks
  261.  * @desc Interruptores respectivos para ver si se cumple la fecha.
  262.  * @default 0 0
  263.  *
  264.  * @param Variable Month and day
  265.  * @desc Las variables en donde se almacenan los días que quieres comprobar
  266.  * separados por espacios. Se almacenan en combinación mes-día (ver ayuda).
  267.  * @default
  268.  *
  269.  * @param Variable Integer checks
  270.  * @desc Interruptores respectivos para ver si se cumple la fecha.
  271.  * @default 0
  272.  *
  273.  * @help
  274.  * ============================================================================
  275.  * Introducción
  276.  * ============================================================================
  277.  *
  278.  * Hay juegos en donde ciertos eventos solo pasan en un día, día de la semana,
  279.  * hora o incluso minuto específico.
  280.  * También los hay en los que el tiempo pasa aunque no estés jugando.
  281.  *
  282.  * Con este complemento puedes hacer ambas cosas.
  283.  *
  284.  * El tiempo se almacena en variables a las que se puede acceder en los eventos.
  285.  * También se puede usar interruptores para comprobar fechas.
  286.  * Se actualiza en cada cambio de mapa, pero también con comando.
  287.  *
  288.  * Además puedes guardar una fecha y comparar cuanto tiempo real ha pasado.
  289.  * El tiempo se almacena en minutos.
  290.  *
  291.  * ============================================================================
  292.  * Parámetros
  293.  * ============================================================================
  294.  *
  295.  * Hay seis parámetros básicos donde almacenar el año, mes, día, hora, etc.
  296.  * Indican qué variables se van a utilizar para almacenar esa info.
  297.  * Para saltar un parámetro dejar en 0.
  298.  *
  299.  * Month and day comes usa un formato especial porque los eventos solo pueden
  300.  * usar una variable por página. Así que necesita una combinada.
  301.  * Viene en Mes*100 + Día.
  302.  * Algunos ejemplos:
  303.  *   -  101: 1  de Enero
  304.  *   -  102: 2  de Enero
  305.  *   -  201: 1  de Febrero
  306.  *   -  211: 11 de Febrero
  307.  *   - 1001: 1  de Octubre
  308.  *   - 1010: 10 de Octubre
  309.  *
  310.  * Hours and minutes funciona como el anterior. Is Hora*100 + minutos.
  311.  *
  312.  * Fixed Month and day: Para comprobar días separados por espacios.
  313.  * Está en combinación con el siguiente parámetro.
  314.  *
  315.  * Fixed Integer checks: Interruptores separados por espacios. Un interruptor
  316.  * para cada fecha. En ese día su interruptor está activado, cuando no,
  317.  * está desactivado.
  318.  *
  319.  * Variable Month and day: Para comprobar la fecha almacenada en variables.
  320.  * Se utiliza para guardar un día y comprobar si es ese día. Se puede usar
  321.  * por ejemplo para guardar una fecha de cumpleaños. Las variables se
  322.  * separan por espacios.
  323.  *
  324.  * Variable Integer checks: Interruptores separados por espacios. Un
  325.  * interruptor para cada variable. Si el día almacenado se cumple su interruptor
  326.  * estará activado, cuando no, estará desactivado.
  327.  *
  328.  * ============================================================================
  329.  * Comandos de complemento
  330.  * ============================================================================
  331.  *
  332.  * GetTime x
  333.  *
  334.  *  - Para almacenar el tiempo en la variable número 'x'.
  335.  *
  336.  * GetTimeSince x y
  337.  * GetHoursSince x y
  338.  * GetDaysSince x y
  339.  *
  340.  *  - Para comparar cuanto tiempo ha pasado desde 'x' en minutos, horas or días
  341.  *    y almacenar el resultado en la variable 'y'.
  342.  *
  343.  * UpdateTime
  344.  *
  345.  *  - Para actualizar manualmente las variables.
  346.  *
  347.  * GoPresent [true]
  348.  *  - Para reiniciar el tiempo. Volver al presente.
  349.  *  - Opcional: poniendo 'true' las variables se actualizarán.
  350.  *    
  351.  * AdvanceTime x [true]
  352.  * AdvanceDays x [true]
  353.  * AdvanceYears x [true]
  354.  *  - Para avanzar x minutos, días o años en el tiempo (puede ser negativo).
  355.  *  - Opcional: poniendo 'true' las variables se actualizarán.
  356.  *
  357.  * ============================================================================
  358.  * Funciones de script
  359.  * ============================================================================
  360.  *
  361.  * Para aquellos que usar javascript en lugar de usar los comandos de
  362.  * complementos éstas son las versiones alternativas.
  363.  *
  364.  * ICF.TimeUtil.GetTime(x)
  365.  * ICF.TimeUtil.GetTimeSince(x, y)
  366.  * ICF.TimeUtil.GetHoursSince(x, y)
  367.  * ICF.TimeUtil.GetDaysSince(x, y)
  368.  * ICF.TimeUtil.GetDate()
  369.  * ICF.TimeUtil.GoPresent(x)
  370.  * ICF.TimeUtil.AdvanceTime(x, true)
  371.  * ICF.TimeUtil.AdvanceDays(x, true)
  372.  * ICF.TimeUtil.AdvanceYears(x, true)
  373.  *
  374.  * ============================================================================
  375.  * Incompatibilidades
  376.  * ============================================================================
  377.  *
  378.  * No se conocen complementos que sean incompatibles hasta la fecha.
  379.  *
  380.  * ============================================================================
  381.  * Problemas conocidos
  382.  * ============================================================================
  383.  *
  384.  * No hay problemas hasta la fecha.
  385.  *
  386.  * ============================================================================
  387.  * Historial de versiones
  388.  * ============================================================================
  389.  *
  390.  * Version 1.03:
  391.  * - Se epieza a utilizar el ICF-Soft Main Utility.
  392.  * - Se ha añadido una combinación de hora y minutos.
  393.  *
  394.  * Version 1.02:
  395.  * - Se ha añadido una función de fechas con interruptores.
  396.  *
  397.  * Version 1.01:
  398.  * - Se ha añadido la utilidad de viaje en el tiempo.
  399.  *
  400.  * Version 1.00:
  401.  * - Complemento terminado.
  402.  *
  403.  * ============================================================================
  404.  *
  405.  * Para juegos comerciales y no comerciales.
  406.  * Se debe incluir a ICF-Soft en los créditos.
  407.  * Esta cabecera debe incluirse íntegramente con el plugin.
  408.  *
  409.  * ============================================================================
  410. */
  411. //=============================================================================
  412.  
  413. //=============================================================================
  414. // Parameter Variables
  415. //=============================================================================
  416.  
  417. ICF.Parameters = PluginManager.parameters('ICFSoft_TimeUtil');
  418. ICF.Param = ICF.Param || {};
  419.  
  420. ICF.Param.TimeVars = [];
  421. ICF.Param.TimeVars[0] = Number(ICF.Parameters['Year Var']);
  422. ICF.Param.TimeVars[1] = Number(ICF.Parameters['Month Var']);
  423. ICF.Param.TimeVars[2] = Number(ICF.Parameters['Day Var']);
  424. ICF.Param.TimeVars[3] = Number(ICF.Parameters['Hour Var']);
  425. ICF.Param.TimeVars[4] = Number(ICF.Parameters['Minute Var']);
  426. ICF.Param.TimeVars[5] = Number(ICF.Parameters['Week Var']);
  427. ICF.Param.TimeVars[6] = Number(ICF.Parameters['Month and day']);
  428. ICF.Param.TimeVars[7] = Number(ICF.Parameters['Hour and minutes']);
  429.  
  430. ICF.Param.TimeTravel = Number(ICF.Parameters['Time travel']);
  431.  
  432. ICF.Param.TimeFixedData = ICF.Parameters['Fixed Month and day'].split(/\s+/).leaveNumbers();
  433. ICF.Param.TimeFixedInt = ICF.Parameters['Fixed Integer checks'].split(/\s+/).leaveNumbers().reduceToFit(ICF.Param.TimeFixedData);
  434. ICF.Param.TimeVarsData = ICF.Parameters['Variable Month and day'].split(/\s+/).leaveNumbers();
  435. ICF.Param.TimeVarsInt = ICF.Parameters['Variable Integer checks'].split(/\s+/).leaveNumbers().reduceToFit(ICF.Param.TimeVarsData);
  436.  
  437. if (!Imported.ICFSoft_MainUtility) {throw new Error('This plugin requires ICF-Soft Main Utility plugin to work.\nYou can download it at icfsoft.blogspot.com inside plugins section.');}
  438.  
  439. //=============================================================================
  440. // Time Utilities
  441. //=============================================================================
  442.  
  443. ICF.TimeUtil.GetTime = function(varid) {
  444.     var Today = new Date();
  445.     Today.increaseMinutes($gameVariables.value(ICF.Param.TimeTravel));
  446.     $gameVariables.setValue(varid, parseInt(Today.getTime()/60000));
  447. }
  448.  
  449. ICF.TimeUtil.GetTimeSince = function(varid, resid) {
  450.     var Today = new Date();
  451.     Today.increaseMinutes($gameVariables.value(ICF.Param.TimeTravel));
  452.     if (resid == undefined) {return (parseInt(Today.getTime()/60000) - $gameVariables.value(varid));}
  453.     $gameVariables.setValue(resid, parseInt(Today.getTime()/60000) - $gameVariables.value(varid));
  454. }
  455.  
  456. ICF.TimeUtil.GetHoursSince = function(varid, resid) {
  457.     if (resid == undefined) {return (ICF.TimeUtil.GetTimeSince(varid)/60)};
  458.     var Today = new Date();
  459.     Today.increaseMinutes($gameVariables.value(ICF.Param.TimeTravel));
  460.     $gameVariables.setValue(resid, parseInt((Today.getTime()/60000) - $gameVariables.value(varid))/60);
  461. }
  462.  
  463. ICF.TimeUtil.GetDaysSince = function(varid, resid) {
  464.     if (resid == undefined) {return (ICF.TimeUtil.GetTimeSince(varid)/1440)};
  465.     var Today = new Date();
  466.     Today.increaseMinutes($gameVariables.value(ICF.Param.TimeTravel));
  467.     $gameVariables.setValue(resid, parseInt((Today.getTime()/60000) - $gameVariables.value(varid))/1440);
  468. }
  469.  
  470. ICF.TimeUtil.GetDate = function() {
  471.     var Today = new Date();
  472.     ICF.TimeUtil.Today = Today.getMonthAndDay();
  473.     Today.increaseMinutes($gameVariables.value(ICF.Param.TimeTravel));
  474.     ICF.TimeUtil.Day = Today.getMonthAndDay();
  475.     if (ICF.Param.TimeVars[0] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[0], Today.getFullYear());}
  476.     if (ICF.Param.TimeVars[1] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[1], Today.getMonth() + 1);}
  477.     if (ICF.Param.TimeVars[2] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[2], Today.getDate());}
  478.     if (ICF.Param.TimeVars[3] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[3], Today.getHours());}
  479.     if (ICF.Param.TimeVars[4] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[4], Today.getMinutes());}
  480.     if (ICF.Param.TimeVars[5] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[5], Today.getDay());}
  481.     if (ICF.Param.TimeVars[6] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[6], ICF.TimeUtil.Day);}
  482.     if (ICF.Param.TimeVars[7] > 0) {$gameVariables.setValue(ICF.Param.TimeVars[7], Today.getHourAndMinute());}
  483.  
  484. }
  485.  
  486. ICF.TimeUtil.GoPresent = function(updating) {
  487.     $gameVariables.setValue(ICF.Param.TimeTravel, 0);
  488.     if (updating) {ICF.TimeUtil.GetDate();}
  489. }
  490.  
  491. ICF.TimeUtil.AdvanceTime = function(minutes, updating) {
  492.     if (minutes == undefined) {minutes = 1}
  493.     $gameVariables.setValue(ICF.Param.TimeTravel, $gameVariables.value(ICF.Param.TimeTravel) + minutes);
  494.     if (updating) {ICF.TimeUtil.GetDate();}
  495. }
  496.  
  497. ICF.TimeUtil.AdvanceDays = function(days, updating) {
  498.     if (days == undefined) {days = 1}
  499.     $gameVariables.setValue(ICF.Param.TimeTravel, $gameVariables.value(ICF.Param.TimeTravel) + days * 1440);
  500.     if (updating) {ICF.TimeUtil.GetDate();}
  501. }
  502.  
  503. ICF.TimeUtil.AdvanceYears = function(years, updating) {
  504.     if (years == undefined) {years = 1}
  505.     $gameVariables.setValue(ICF.Param.TimeTravel, $gameVariables.value(ICF.Param.TimeTravel) + years * 525960);
  506.     if (updating) {ICF.TimeUtil.GetDate();}
  507. }
  508.  
  509. //=============================================================================
  510. // Game_Interpreter
  511. //=============================================================================
  512.  
  513. ICF.TimeUtil.pluginCommand = Game_Interpreter.prototype.pluginCommand;
  514. Game_Interpreter.prototype.pluginCommand = function(command, args) {
  515.         ICF.TimeUtil.pluginCommand.call(this, command, args);
  516.     if (command.toLowerCase() === 'gettime') {
  517.         ICF.TimeUtil.GetTime(args[0]);
  518.     } else if (command.toLowerCase() == 'gettimesince') {
  519.         ICF.TimeUtil.GetTimeSince(args[0], args[1]);
  520.     } else if (command.toLowerCase() == 'gethourssince') {
  521.         ICF.TimeUtil.GetHoursSince(args[0], args[1]);
  522.     } else if (command.toLowerCase() == 'getdayssince') {
  523.         ICF.TimeUtil.GetDaysSince(args[0], args[1]);
  524.         } else if (command.toLowerCase() == 'updatetime') {
  525.         ICF.TimeUtil.GetDate();
  526.         } else if (command.toLowerCase() == 'gopresent') {
  527.         ICF.TimeUtil.GoPresent(args[0]);
  528.     } else if (command.toLowerCase() == 'advancetime') {
  529.         ICF.TimeUtil.AdvanceTime(args[0], args[1]);
  530.     } else if (command.toLowerCase() == 'advancedays') {
  531.         ICF.TimeUtil.AdvanceDays(args[0], args[1]);
  532.         } else if (command.toLowerCase() == 'advanceyears') {
  533.         ICF.TimeUtil.AdvanceYears(args[0], args[1]);
  534.         }
  535. };
  536.  
  537. //=============================================================================
  538. // Game_Map
  539. //=============================================================================
  540.  
  541. ICF.TimeUtil.mapsetup = Game_Map.prototype.setup;
  542. Game_Map.prototype.setup = function(mapId) {
  543.     ICF.TimeUtil.GetDate();
  544.     ICF.TimeUtil.mapsetup.call(this, mapId);
  545. };
  546.  
  547. //=============================================================================
  548. // Game_Switches
  549. //=============================================================================
  550.  
  551. ICF.TimeUtil.Game_Switches_value = Game_Switches.prototype.value;
  552. Game_Switches.prototype.value = function(switchId) {
  553.   if (ICF.Param.TimeFixedInt.indexOf(switchId) > -1) {
  554.     return (ICF.TimeUtil.Day == ICF.Param.TimeFixedData[ICF.Param.TimeFixedInt.indexOf(switchId)]);
  555.   } else if (ICF.Param.TimeVarsInt.indexOf(switchId) > -1) {
  556.     return (ICF.TimeUtil.Day == $gameVariables.value(ICF.Param.TimeVarsData[ICF.Param.TimeVarsInt.indexOf(switchId)]));
  557.   } else {
  558.     return ICF.TimeUtil.Game_Switches_value.call(this, switchId);
  559.   }
  560. };
  561.  
  562. //=============================================================================
  563. // End of File
  564. //=============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement