mirror of
https://github.com/Oreolek/flower.git
synced 2024-04-26 22:29:20 +03:00
Core engine fix and game advancing
This commit is contained in:
parent
55770d9b48
commit
2fc0fd6c55
|
@ -18,11 +18,12 @@ undum.game.situations =
|
|||
Вася наклоняется и срывает фиолетовый цветочек. Мама любит васильки.
|
||||
"""),
|
||||
{
|
||||
tags: ["flowers"],
|
||||
tags: "flowers",
|
||||
choices: "#flowers",
|
||||
optionText: "Василёк"
|
||||
enter: (character, system, from) ->
|
||||
character.qualities.chose_flowers = character.qualities.chose_flowers + 1
|
||||
if character.qualities.chose_flowers > 2
|
||||
if character.qualities.chose_flowers == 2
|
||||
system.setQuality("flower_chosen", "cornflower")
|
||||
system.doLink("tourist")
|
||||
}
|
||||
|
@ -30,14 +31,15 @@ undum.game.situations =
|
|||
|
||||
camomile: new undum.SimpleSituation(
|
||||
converter.makeHtml("""
|
||||
Вася наклоняется и срывает фиолетовый цветочек. Мама любит васильки.
|
||||
Теперь в букетике есть ромашка.
|
||||
"""),
|
||||
{
|
||||
tags: ["flowers"],
|
||||
tags: "flowers",
|
||||
choices: "#flowers",
|
||||
optionText: "Ромашка"
|
||||
enter: (character, system, from) ->
|
||||
character.qualities.chose_flowers = character.qualities.chose_flowers + 1
|
||||
if character.qualities.chose_flowers > 2
|
||||
if character.qualities.chose_flowers == 2
|
||||
system.setQuality("flower_chosen", "camomile")
|
||||
system.doLink("tourist")
|
||||
}
|
||||
|
@ -48,11 +50,12 @@ undum.game.situations =
|
|||
Жёлтый одуванчик — ничего необычного, но он сделает букетик ярче.
|
||||
"""),
|
||||
{
|
||||
tags: ["flowers"],
|
||||
tags: "flowers",
|
||||
choices: "#flowers",
|
||||
optionText: "Одуванчик"
|
||||
enter: (character, system, from) ->
|
||||
character.qualities.chose_flowers = character.qualities.chose_flowers + 1
|
||||
if character.qualities.chose_flowers > 2
|
||||
if character.qualities.chose_flowers == 2
|
||||
system.setQuality("flower_chosen", "dandelion")
|
||||
system.doLink("tourist")
|
||||
}
|
||||
|
|
|
@ -884,7 +884,9 @@
|
|||
var qualityBlock = $("#q_"+quality);
|
||||
if (qualityBlock.size() <= 0) {
|
||||
if (newDisplay === null) return;
|
||||
qualityBlock = addQualityBlock(quality).hide().fadeIn(500);
|
||||
qualityBlock = addQualityBlock(quality);
|
||||
if (qualityBlock === null) return;
|
||||
qualityBlock.hide().fadeIn(500);
|
||||
} else {
|
||||
// Do nothing if there's nothing to do.
|
||||
if (oldValue == newValue) return;
|
||||
|
|
Loading…
Reference in a new issue