ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/shop_ring.ext
Revision: 1.4
Committed: Sun Nov 18 15:19:48 2018 UTC (5 years, 6 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 elmex 1.1 #!perl
2    
3     cf::object::attachment "ring_adornment_shop",
4 root 1.2 on_reset => sub {
5 elmex 1.1 my ($ob) = @_;
6    
7     my $o = cf::object::new 'ring';
8     $o->flag (cf::FLAG_IDENTIFIED, 1);
9     $o->flag (cf::FLAG_UNPAID, 1);
10 root 1.4 $o->set_anim_frame (cf::rndm $o->anim_frames);
11 elmex 1.1
12     $o->insert_ob_in_map_at ($ob->map, undef, cf::INS_ABOVE_FLOOR_ONLY, $ob->x, $ob->y);
13    
14     cf::override;
15    
16     1
17 root 1.3 }
18     ;
19 elmex 1.1
20     cf::object::attachment "amulet_adornment_shop",
21 root 1.2 on_reset => sub {
22 elmex 1.1 my ($ob) = @_;
23    
24     my $arch = ('amulet', 'amulet_gray', 'amulet_white')[cf::rndm 3];
25     my $o = cf::object::new $arch;
26     $o->flag (cf::FLAG_IDENTIFIED, 1);
27     $o->flag (cf::FLAG_UNPAID, 1);
28     $o->insert_ob_in_map_at ($ob->map, undef, cf::INS_ABOVE_FLOOR_ONLY, $ob->x, $ob->y);
29    
30     cf::override;
31    
32     1
33 root 1.3 }
34     ;