-affected in BUILD_ARK gesetzt
authorBenni Bärmann <benni@obda.de>
Fri, 19 Oct 2012 09:37:35 +0000 (11:37 +0200)
committerBenni Bärmann <benni@obda.de>
Fri, 19 Oct 2012 09:37:35 +0000 (11:37 +0200)
TODO
html/player.epl
src/AymCommand.pm
src/FROGS/Command.pm

diff --git a/TODO b/TODO
index 48e1a40..121a0b7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -12,6 +12,9 @@ auch wenn man in einem epl-script ist.
 - Mobiles können vereinzeln. Genaue Umstände unklar. Möglicherweise hat es was mit länger nicht laufendem scheduler zu tun?
 Aufgetreten ist es durch Produktion in einer Heimatstadt nach Bewegung.
 
+- Registrieren klappt erst, nachdem eine Sprache ausgewählt wurde, weil 
+"LANGUAGE cannot be null".
+
 Testen
 ------
 
index d954a1e..3d2f217 100644 (file)
@@ -1,4 +1,3 @@
-[- use FROGS::Config qw($conf); -]
 <html>
 <head><link rel="stylesheet" type="text/css" href="aymargeddon.css">
 <title>Aymargeddon</title></head>
@@ -29,7 +28,7 @@
 
  $escmode = 0;
 
- # TODO: klappt nich :-(
+ # TODO: klappt nich weil $::conf nicht funktioniert im Embperl :-(
  # $out = '<body style="font-size:10pt" bgcolor="'.$conf->{-COLOR}->{-EMPTY}.'">';
  $out = '<body style="line-height:12pt;font-size:10pt">';
 -]
index 032d0c0..e6099ae 100644 (file)
@@ -1896,10 +1896,16 @@ sub first_phase{
   # calculate duration
   $self->setDuration($::conf->{-DURATION}->{-BUILD_ARK});
 
-  $self->event($self->{-location},
-              'EVENT_BUILD_ARK');
+  my $loc = $self->{-location};
+  
+  $self->event($loc,'EVENT_BUILD_ARK');
 
   $self->use_mana();
+  
+  $self->{-affected} = {
+      -fields => [$loc],
+      -mana => $self->{-player},
+  };
 
   return $self->{-duration};
 }
index 9d702e0..056f9ec 100644 (file)
@@ -3,7 +3,7 @@
 #   Copyright (c) 2003-2012 Aymargeddon Development Team
 #
 #   This file is part of "Last days of Aymargeddon" - a massive multi player
-#   onine game of strategy     
+#   online game of strategy    
 #   
 #        This program is free software: you can redistribute it and/or modify
 #       it under the terms of the GNU Affero General Public License as