1
0
Fork 0
mirror of https://github.com/Oreolek/shooter.git synced 2024-04-26 22:19:19 +03:00
This commit is contained in:
Alexander Yakovlev 2015-12-02 17:56:40 +07:00
parent 70f9e51f04
commit 8706a57ffb
2 changed files with 14 additions and 9 deletions

View file

@ -12,7 +12,8 @@ module.exports.language =
emptyclip: "I get rid of empty cartridge."
player_hit:[
"Android's head explodes like a Christmas fireworks.",
"Android tries to dodge but finds himself right on the bullet's wrong side. He falls, flooding the floor with oil."
"Android tries to dodge but finds himself right on the bullet's wrong side.
He falls, flooding the floor with oil."
]
player_finished:[
"I finish the android with a shot to his heart.",
@ -20,7 +21,8 @@ module.exports.language =
"The bullet pierces android's head and he finally falls on the floor motionless.",
]
player_nicked:[
"I shoot the enemy's leg off. He falls but keeps slowly scratch his way with his hands.",
"""I shoot the enemy's leg off.
He falls but keeps slowly scratch his way with his hands.""",
"I shoot through the android's arm. He stumbles but keeps going.",
]
shoot:[
@ -46,7 +48,10 @@ module.exports.language =
"Slowly take aim and shoot",
]
reload: "Reload the pistol",
reload_response: "I put another clip in the pistol. I hope it has some ammo."
reload_response: """
I put another clip in the pistol.
I hope it has some ammo.
"""
search: "Search for a clip"
search_response:[
"I hastily search the floor, trying to find at least one cartridge intact.",
@ -54,7 +59,7 @@ module.exports.language =
]
finale: """
KABOOM!
The last android suddenly explodes like larded with dynamite.
Eh, with these machines you never know.
I turn around and go away, not looking at the fire.

View file

@ -28,7 +28,7 @@ undum.game.version = "1.0"
way_to = (content, ref) -> a(content).class('way').ref(ref)
textlink = (content, ref) -> a(content).once().writer(ref)
is_visited = (situation) -> undum.game.situations[situation].visited == 1
writemd = (system, text) ->
writemd = (system, text) ->
if typeof text is Function
text = text()
system.write(markdown.render(text))
@ -151,7 +151,7 @@ situation "reload",
character.sandbox.seen_reload = 1
system.clearContent()
character.sandbox.distance--
after: (character, system) ->
after: (character, system) ->
spend_clip(character, system)
writemd(system, "reload_response".l())
return true
@ -199,9 +199,9 @@ situation "not_found",
situation "finale",
content: (character, system) ->
if character.sandbox.shots == 35
return "finale_perfect".l(),
return "finale".l(),
if character.sandbox.shots < 36
return "finale_perfect".l()
return "finale".l()
qualities
head: