1 | // changes the original dialogs |
2 | static L<Dialog> expandDialogs(L<Dialog> dialogs) { |
3 | for (Dialog d : dialogs) |
4 | for (int i = 0; i < l(d.poem); i++) { |
5 | E e = d.poem.get(i); |
6 | if (!e.state()) continue; |
7 | int idx = e.text().indexOf('='); |
8 | if (idx < 0) continue; |
9 | d.poem.set(i, E.state("get " + e.text().substring(0, idx))); |
10 | d.poem.add(i+1, E.state("result is " + e.text().substring(idx+1))); |
11 | } |
12 | ret dialogs; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003507 |
Snippet name: | expandDialogs (expand "=" lines) |
Eternal ID of this version: | #1003507/1 |
Text MD5: | 7f689e62d5fde9ba7daf593fa03c98f0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-10 14:53:40 |
Source code size: | 457 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 609 / 597 |
Referenced in: | [show references] |