From: Benni Bärmann Date: Fri, 19 Oct 2012 09:37:35 +0000 (+0200) Subject: -affected in BUILD_ARK gesetzt X-Git-Url: http://aymargeddon.de/gitweb/?p=aymargeddon%2Fcurrent.git;a=commitdiff_plain;h=d327e42a55ad2d206902528e923164946c653c6a;ds=sidebyside -affected in BUILD_ARK gesetzt --- diff --git a/TODO b/TODO index 48e1a40..121a0b7 100644 --- 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 ------ diff --git a/html/player.epl b/html/player.epl index d954a1e..3d2f217 100644 --- a/html/player.epl +++ b/html/player.epl @@ -1,4 +1,3 @@ -[- use FROGS::Config qw($conf); -] Aymargeddon @@ -29,7 +28,7 @@ $escmode = 0; - # TODO: klappt nich :-( + # TODO: klappt nich weil $::conf nicht funktioniert im Embperl :-( # $out = ''; $out = ''; -] diff --git a/src/AymCommand.pm b/src/AymCommand.pm index 032d0c0..e6099ae 100644 --- a/src/AymCommand.pm +++ b/src/AymCommand.pm @@ -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}; } diff --git a/src/FROGS/Command.pm b/src/FROGS/Command.pm index 9d702e0..056f9ec 100644 --- a/src/FROGS/Command.pm +++ b/src/FROGS/Command.pm @@ -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