This commit is contained in:
2026-06-11 22:10:09 -05:00
parent 532497e28a
commit f249e109ed
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ impl ScriptHost {
let has_1 = compiled.ast.iter_functions() let has_1 = compiled.ast.iter_functions()
.any(|f| f.name == fn_name && f.params.len() == 1); .any(|f| f.name == fn_name && f.params.len() == 1);
let has_0 = compiled.ast.iter_functions() let has_0 = compiled.ast.iter_functions()
.any(|f| f.name == fn_name && f.params.len() == 0); .any(|f| f.name == fn_name && f.params.is_empty());
let options = CallFnOptions::default().with_tag(obj.object_id as i64); let options = CallFnOptions::default().with_tag(obj.object_id as i64);
let result = if has_1 { let result = if has_1 {
+2 -3
View File
@@ -20,10 +20,9 @@ mod input;
use kiln_core::game::{GameState, ScrollLine}; use kiln_core::game::{GameState, ScrollLine};
use kiln_core::log::LogLine; use kiln_core::log::LogLine;
use kiln_core::map_file; use kiln_core::map_file;
use kiln_core::Direction;
use ratatui::Frame; use ratatui::Frame;
use ratatui::crossterm::event::{ use ratatui::crossterm::event::{
self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyEventKind, MouseEventKind, self, DisableMouseCapture, EnableMouseCapture, Event, KeyEventKind,
}; };
use ratatui::crossterm::execute; use ratatui::crossterm::execute;
use ratatui::layout::{Constraint, Layout, Spacing}; use ratatui::layout::{Constraint, Layout, Spacing};
@@ -36,7 +35,7 @@ use std::time::{Duration, Instant};
use term::TerminalCaps; use term::TerminalCaps;
use crate::input::{current_input_mode, handle_board_input, handle_scroll_input, InputMode}; use crate::input::{current_input_mode, handle_board_input, handle_scroll_input, InputMode};
use crate::log::{log_preview_line, LogWidget}; use crate::log::{log_preview_line, LogWidget};
use crate::scroll_overlay::{ScrollAnimState, ScrollOverlayWidget}; use crate::scroll_overlay::ScrollOverlayWidget;
use crate::speech::SpeechBubblesWidget; use crate::speech::SpeechBubblesWidget;
use crate::ui::Ui; use crate::ui::Ui;