Skip to content

Commit

Permalink
Fixed incorrect tile_num_in_direction usage in ecdogmet and ecpariah
Browse files Browse the repository at this point in the history
(the first arg should be tile number not object.)

Removed inc_evil_critter from killing radscorpions.
(vanilla script doesn't have this, supposedly a leftover bug from old UP.)
  • Loading branch information
NovaRain committed Jul 26, 2024
1 parent 8feea5a commit 55a08f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions scripts_src/generic/zclscorp.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ procedure critter_p_proc begin
end

procedure destroy_p_proc begin
variable tail := 0;
tail := create_object(PID_SCORPION_TAIL,0,0);
add_obj_to_inven(self_obj,tail);

inc_evil_critter
variable tail := 0;
tail := create_object(PID_SCORPION_TAIL,0,0);
add_obj_to_inven(self_obj,tail);
end

procedure damage_p_proc begin
Expand Down
2 changes: 1 addition & 1 deletion scripts_src/rndenctr/ecdogmet.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ procedure critter_p_proc begin
if (game_time > doWalking) then begin
reg_anim_clear(self_obj);
reg_anim_begin();
self_walk_to_tile(tile_num_in_direction(dude_obj, Random(0, 5), Random(5, 10)));
self_walk_to_tile(tile_num_in_direction(dude_tile, Random(0, 5), Random(5, 10)));
reg_anim_end();
doWalking := game_time + game_ticks(Random(10, 40));
end
Expand Down
2 changes: 1 addition & 1 deletion scripts_src/rndenctr/ecpariah.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ procedure critter_p_proc begin
end else if (doWalking < game_time) then begin
reg_anim_clear(self_obj);
reg_anim_begin();
self_walk_to_tile(tile_num_in_direction(dude_obj, Random(0, 5), Random(5, 10)));
self_walk_to_tile(tile_num_in_direction(dude_tile, Random(0, 5), Random(5, 10)));
reg_anim_end();
doWalking := game_time + (ONE_GAME_SECOND * (Random(1, 30)));
end
Expand Down

0 comments on commit 55a08f4

Please sign in to comment.