rules_ai 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 917312bdc11c8d360345f504f6a160d8c21d80b56b3c5ac06be35026e5d1f63c
4
- data.tar.gz: 773c7dcc9056709b30d5e8a5cf4ab395c63846cbd88bb4ea310c420a6805c575
3
+ metadata.gz: 5ccb715e8bc3f898d3fd86f18b13a09a8ccbf13400b3942d813d706fefb07553
4
+ data.tar.gz: dd41894768f44f30f532214b3e47d7f0eb29e784ef8011e669902cf447235897
5
5
  SHA512:
6
- metadata.gz: 10a75fa6ac8e510d1a6d3f4f523db82fe7693080ae756314256dbae347eb09b3d121ba324826ef3b624c8c7f01649bb666e786843f8fb18fb7a6bf95272b7f05
7
- data.tar.gz: 613f23e64aa1c446e5ad21676f56e62e1ba9c3ae3bab3edf27b16b30bb5c1a442ea909b475b588b7dc93b94fda85cf7cb19925065bf7e403bfd002fd84252137
6
+ metadata.gz: 707ff61984d894d3fd6f71b23195f066dd0a169debe16ec0b336c5ef63e6de2199ac3f0675ddbce657df264896ce0eae9539073f9e287cd0b4c447d2500fdee1
7
+ data.tar.gz: 107556d60cae849484ebe49ef3338b315a5a30e4b1be0d704af38c84857a42bd5d79a3c8cdf85476333978ff11b9312d330159b8245927b019e6baade386c357
@@ -277,6 +277,53 @@ module RulesAi
277
277
  puts "The hyper inches of the tessaract is #{hyper_inches} hyper distance."
278
278
  end
279
279
 
280
+ def self.write_renpy_script
281
+ require "rules_ai"
282
+
283
+ RulesAi::Rules_Set.write_poetry
284
+
285
+ poem = File.readlines("output/poetry/poem.txt")
286
+
287
+ first_line = poem[0].strip
288
+ second_line = poem[1].strip
289
+ third_line = poem[2].strip
290
+ fourth_line = poem[3].strip
291
+ fifth_line = poem[4].strip
292
+ sixth_line = poem[5].strip
293
+ seventh_line = poem[6].strip
294
+ eighth_line = poem[7].strip
295
+
296
+ bot_name = "Bianca"
297
+
298
+ ai_visual_novel = "define ai = Character('#{bot_name}')
299
+
300
+ label start:
301
+ scene bg black
302
+
303
+ ai '#{first_line}'
304
+
305
+ ai '#{second_line}'
306
+
307
+ ai '#{third_line}'
308
+
309
+ ai '#{fourth_line}'
310
+
311
+ ai '#{fifth_line}'
312
+
313
+ ai '#{sixth_line}'
314
+
315
+ ai '#{seventh_line}'
316
+
317
+ ai '#{eighth_line}'
318
+
319
+ return
320
+ "
321
+
322
+ open("output/renpy/script.rpy", "w") { |f|
323
+ f.puts ai_visual_novel
324
+ }
325
+ end
326
+
280
327
  def self.line
281
328
  puts '
282
329
  +----------------+
@@ -1,3 +1,3 @@
1
1
  module RulesAi
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rules_ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gitea