1 package org
.sevenchan
.dongs
.screens
3 import org
.sevenchan
.AdventureController
;
4 import org
.sevenchan
.dongs
.Creature
;
5 import org
.sevenchan
.dongs
.Screen;
10 public class LoserScreen
extends Screen
12 private var player
:Creature
;
13 private var winner
:Creature
;
15 public static function push
(ply
:Creature
, winner
:Creature
):void {
16 AdventureController
.screenQueue
.write
(new LoserScreen
(ply
, winner
));
17 AdventureController
.screenQueue
.dump
();
20 public function LoserScreen
(ply
:Creature
,wnr
:Creature
)
25 this.appearanceButton
= true;
26 this.debugMenuButton
= true;
27 this.exportGameButton
= true;
28 this.loadOrSaveButton
= true;
29 this.newGameButton
= false;
30 this.importGameButton
= false;
33 this.setButton
(NEXT_BUTTON
, "Next");
36 override public function processButtonPress
(id
:int):Boolean
42 player
.HP
= player
.maxHP
;
47 override public function getScreenText
():String
49 return "<h2>You Lost</h2><p>You wake up at the barn, feeling refreshed, but sore... And also short 30 gold.</p>";