--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/11/07 22:41:27 1.87 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/12/04 15:17:14 1.89 @@ -658,7 +658,7 @@ $spell->{message} =~ s/\n+$//; $spell->{message} ||= "Server did not provide a description for this spell."; - $::SPELL_PAGE->add_spell ($spell); + $::SPELL_LIST->add_spell ($spell); $self->{map_widget}->add_command ("invoke $spell->{name}", CFPlus::asxml $spell->{message}); $self->{map_widget}->add_command ("cast $spell->{name}", CFPlus::asxml $spell->{message}); @@ -667,7 +667,7 @@ sub spell_delete { my ($self, $spell) = @_; - $::SPELL_PAGE->remove_spell ($spell); + $::SPELL_LIST->remove_spell ($spell); } sub setup { @@ -895,6 +895,8 @@ . ($self->{cfplus_ext} > 0 ? ", version $self->{cfplus_ext}" : "") ."\n" . "map size $self->{mapw}×$self->{maph}\n" ); + + ::setup_build_button ($self->{editor_support}->{builder_ui}); } sub logged_in { @@ -923,6 +925,14 @@ $self->send_command ("pickup $::CFG->{pickup}"); } +sub buildat { + my ($self, $builditem, $x, $y) = @_; + + if ($self->{cfplus_ext}) { + $self->send_ext_msg (builder_build => dx => $x, dy => $y, (ref ($builditem) eq 'HASH') ? %$builditem : (item => $builditem)); + } +} + sub lookat { my ($self, $x, $y) = @_;