Skip to content

Commit

Permalink
Hstone, Kocatan room formatting
Browse files Browse the repository at this point in the history
Also made Heartstones non-disposable; fixed spelling errors in resources
and some debug code in Kocatan Sewers.
  • Loading branch information
skittles1 committed Nov 10, 2014
1 parent 6d62d7d commit 6776704
Show file tree
Hide file tree
Showing 44 changed files with 711 additions and 616 deletions.
18 changes: 9 additions & 9 deletions kod/object/active/holder/room/kocarm/kocapoth.kod
Expand Up @@ -14,9 +14,8 @@ constants:

include blakston.khd


resources:

room_name_kocapoth = "Two Lizards Magic Shop"
room_kocapoth = kocapoth.roo
kocapoth_music = song12.mp3
Expand Down Expand Up @@ -78,20 +77,21 @@ messages:
];

Send(self,@CreateOrnObjFromList,#lObjlist=lObjCoords1);
send(self,@NewHold,#what=Create(&KocatanApothecary),

Send(self,@NewHold,#what=Create(&KocatanApothecary),
#new_row=4,#new_col=2,#fine_row=32,#fine_col=24,
#new_angle=ANGLE_EAST);

% Lighting
send(self,@NewHold,#what=Create(&DynamicLight,#iColor=LIGHT_FIRE,#iIntensity=25),
#new_row=2,#new_col=5,#fine_row=16,#fine_col=32);
send(self,@NewHold,#what=Create(&DynamicLight,#iColor=LIGHT_FIRE,#iIntensity=25),
#new_row=4,#new_col=8,#fine_row=48,#fine_col=8);
Send(self,@NewHold,#what=Create(&DynamicLight,
#iColor=LIGHT_FIRE,#iIntensity=25),
#new_row=2,#new_col=5,#fine_row=16,#fine_col=32);
Send(self,@NewHold,#what=Create(&DynamicLight,
#iColor=LIGHT_FIRE,#iIntensity=25),
#new_row=4,#new_col=8,#fine_row=48,#fine_col=8);

propagate;
}


end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
38 changes: 19 additions & 19 deletions kod/object/active/holder/room/kocarm/kocatan.kod
Expand Up @@ -20,7 +20,8 @@ resources:
room_kocatan = settle1.roo
kocatan_music = song08.mp3

kocatan_military = "No non-military personnel are allowed in the guard barracks."
kocatan_military = \
"No non-military personnel are allowed in the guard barracks."
kocatan_locked = "This door is firmly bolted shut."

classvars:
Expand All @@ -31,8 +32,8 @@ classvars:
viTeleport_row = 40
viTeleport_col = 30

% This room technically isn't a beach area, but it should get the sounds from the ocean
% directly to the south.
% This room technically isn't a beach area, but it should get the
%sounds from the ocean directly to the south.
viTerrain_type = TERRAIN_CITY | TERRAIN_ROAD | TERRAIN_LAKE | TERRAIN_BEACH

properties:
Expand All @@ -52,7 +53,7 @@ messages:
{
plExits = $;

%% locked doors first, since they will be the least active
% Locked doors first, since they will be the least active.
plExits = Cons([ 1, 17, ROOM_LOCKED_DOOR, kocatan_military ],plExits);
plExits = Cons([ 1, 18, ROOM_LOCKED_DOOR, kocatan_military ],plExits);
plExits = Cons([ 1, 21, ROOM_LOCKED_DOOR, kocatan_military ],plExits);
Expand All @@ -68,13 +69,13 @@ messages:
plExits = Cons([ 1, 41, ROOM_LOCKED_DOOR, kocatan_military ],plExits);
plExits = Cons([ 1, 42, ROOM_LOCKED_DOOR, kocatan_military ],plExits);

%% eastern guard tower -- teleport in at (4,45)
% Eastern guard tower -- teleport in at (4,45).
plExits = Cons([ 3, 46, RID_KOC_GUARDTOWER_EAST, 36, 5, ROTATE_NONE ],plExits);
plExits = Cons([ 3, 47, RID_KOC_GUARDTOWER_EAST, 36, 5, ROTATE_NONE ],plExits);
plExits = Cons([ 4, 46, RID_KOC_GUARDTOWER_EAST, 36, 5, ROTATE_NONE ],plExits);
plExits = Cons([ 4, 47, RID_KOC_GUARDTOWER_EAST, 36, 5, ROTATE_NONE ],plExits);

%% apothecary
% Apothecary.
plExits = Cons([ 14, 12, RID_KOC_APOTH, 3, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 15, 12, RID_KOC_APOTH, 3, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 14, 13, RID_KOC_APOTH, 3, 7, ROTATE_NONE ],plExits);
Expand All @@ -83,56 +84,56 @@ messages:
plExits = Cons([ 20, 7, RID_KOC_APOTH, 7, 3, ROTATE_NONE ],plExits);
plExits = Cons([ 20, 8, RID_KOC_APOTH, 7, 3, ROTATE_NONE ],plExits);

%% hall of heroes -- teleport in at (23,30)
% Hall of Heroes -- teleport in at (23,30).
plExits = Cons([ 21, 29, RID_KOC_HALL_OF_HEROES, 13, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 22, 29, RID_KOC_HALL_OF_HEROES, 13, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 21, 30, RID_KOC_HALL_OF_HEROES, 13, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 22, 30, RID_KOC_HALL_OF_HEROES, 13, 7, ROTATE_NONE ],plExits);

%% bank -- teleport in at (24,44)
% Bank -- teleport in at (24,44).
plExits = Cons([ 23, 45, RID_KOC_BANK, 20, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 24, 45, RID_KOC_BANK, 20, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 23, 46, RID_KOC_BANK, 20, 7, ROTATE_NONE ],plExits);
plExits = Cons([ 24, 46, RID_KOC_BANK, 20, 7, ROTATE_NONE ],plExits);

%% guild hall 12 (merchant hall) -- teleport in at (4,14)
% Guild hall 12 (merchant hall) -- teleport in at (4,14).
plExits = Cons([ 3, 12, RID_GUILDH12, 44, 23, ROTATE_NONE ],plExits);
plExits = Cons([ 3, 13, RID_GUILDH12, 44, 23, ROTATE_NONE ],plExits);
plExits = Cons([ 4, 12, RID_GUILDH12, 44, 23, ROTATE_NONE ],plExits);
plExits = Cons([ 4, 13, RID_GUILDH12, 44, 23, ROTATE_NONE ],plExits);
%% orc caves -- teleport in at (41,52)

% Orc Caves -- teleport in at (41,52).
plExits = Cons([ 40, 53, RID_ORC_CAVE6, 6, 59, ROTATE_NONE ],plExits);
plExits = Cons([ 40, 54, RID_ORC_CAVE6, 6, 59, ROTATE_NONE ],plExits);
plExits = Cons([ 41, 53, RID_ORC_CAVE6, 6, 59, ROTATE_NONE ],plExits);
plExits = Cons([ 41, 54, RID_ORC_CAVE6, 6, 59, ROTATE_NONE ],plExits);
plExits = Cons([ 42, 53, RID_ORC_CAVE6, 6, 59, ROTATE_NONE ],plExits);
plExits = Cons([ 42, 54, RID_ORC_CAVE6, 6, 59, ROTATE_NONE ],plExits);

%% store - teleport in at (32,48)
% Store - teleport in at (32,48).
plExits = Cons([ 30, 47, RID_KOC_STORE, 15, 12, ROTATE_NONE ],plExits);
plExits = Cons([ 31, 47, RID_KOC_STORE, 15, 12, ROTATE_NONE ],plExits);
plExits = Cons([ 30, 48, RID_KOC_STORE, 15, 12, ROTATE_NONE ],plExits);
plExits = Cons([ 31, 48, RID_KOC_STORE, 15, 12, ROTATE_NONE ],plExits);
%% inn

% Inn.
plExits = Cons([ 29, 6, RID_KOC_INN, 3, 5, ROTATE_NONE ],plExits);
plExits = Cons([ 29, 7, RID_KOC_INN, 3, 5, ROTATE_NONE ],plExits);
plExits = Cons([ 29, 8, RID_KOC_INN, 3, 5, ROTATE_NONE ],plExits);
plExits = Cons([ 29, 8, RID_KOC_INN, 3, 5, ROTATE_NONE ],plExits);

%% tavern
% Tavern.
plExits = Cons([ 36, 12, RID_KOC_TAVERN, 12, 29, ROTATE_NONE ],plExits);
plExits = Cons([ 37, 12, RID_KOC_TAVERN, 12, 29, ROTATE_NONE ],plExits);
plExits = Cons([ 37, 13, RID_KOC_TAVERN, 12, 29, ROTATE_NONE ],plExits);
plExits = Cons([ 36, 13, RID_KOC_TAVERN, 12, 29, ROTATE_NONE ],plExits);

%% northern guard tower -- teleport in at (4,45)
% Northern guard tower -- teleport in at (4,45).
%plExits = Cons([ 3, 46, RID_KOC_GUARDTOWER_NORTH, 20, 20, ROTATE_NONE ],plExits);
%plExits = Cons([ 3, 47, RID_KOC_GUARDTOWER_NORTH, 20, 20, ROTATE_NONE ],plExits);
%plExits = Cons([ 4, 46, RID_KOC_GUARDTOWER_NORTH, 20, 20, ROTATE_NONE ],plExits);
%plExits = Cons([ 4, 47, RID_KOC_GUARDTOWER_NORTH, 20, 20, ROTATE_NONE ],plExits);

%% southern half of city - land them at (50,30)
% Southern half of city - land them at (50,30).
plExits = Cons([ 51, 29, RID_KOC_SOUTH, 4, 26, ROTATE_NONE ],plExits);
plExits = Cons([ 51, 30, RID_KOC_SOUTH, 4, 26, ROTATE_NONE ],plExits);
plExits = Cons([ 52, 29, RID_KOC_SOUTH, 4, 26, ROTATE_NONE ],plExits);
Expand All @@ -141,6 +142,5 @@ messages:
propagate;
}


end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19 changes: 11 additions & 8 deletions kod/object/active/holder/room/kocarm/kocbank.kod
Expand Up @@ -82,33 +82,36 @@ messages:
[21,11,16,40,OO_BLUE_BOTTLE],[18,10,48,48,OO_POT],
[24,10,40,32,OO_bigurn]
];

Send(self,@CreateOrnObjFromList,#lObjlist=lObjCoords1);

Send(self,@NewHold,#what=Create(&KocatanVaultman),
#new_row=21,#new_col=10,#fine_row=0,#fine_col=56);
#new_row=21,#new_col=10,#fine_row=0,#fine_col=56);
Send(self,@NewHold,#what=Create(&KocatanBanker),
#new_row=19,#new_col=10,#fine_row=24,#fine_col=40);
#new_row=19,#new_col=10,#fine_row=24,#fine_col=40);

Send(self,@NewHold,#what=Create(&KocatanSentry),
#new_row=8,#new_col=11,#fine_row=56,#fine_col=08);
#new_row=8,#new_col=11,#fine_row=56,#fine_col=08);

% Lighting
oLight = Create(&DynamicLight,#iColor=LIGHT_FIRE,#iIntensity=25);
Send(self,@NewHold,#what=oLight,#new_row=9,#new_col=4,
#fine_row=40,#fine_col=8);
#fine_row=40,#fine_col=8);

oLight = Create(&DynamicLight,#iColor=LIGHT_FIRE,#iIntensity=25);
Send(self,@NewHold,#what=oLight,#new_row=9,#new_col=13,
#fine_row=40,#fine_col=32);
#fine_row=40,#fine_col=32);

oLight = Create(&DynamicLight,#iColor=LIGHT_FIRE,#iIntensity=25);
Send(self,@NewHold,#what=oLight,#new_row=13,#new_col=7,
#fine_row=24,#fine_col=48);
#fine_row=24,#fine_col=48);

oLight = Create(&DynamicLight,#iColor=LIGHT_FIRE,#iIntensity=25);
Send(self,@NewHold,#what=oLight,#new_row=13,#new_col=9,
#fine_row=24,#fine_col=48);
#fine_row=24,#fine_col=48);

propagate;
}


end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 changes: 8 additions & 7 deletions kod/object/active/holder/room/kocarm/kocblack.kod
Expand Up @@ -59,7 +59,7 @@ messages:
{
plExits = $;

%% to town -- teleport in to (6,9)
% To town -- teleport in to (6,9)
plExits = Cons([ 5, 10, RID_KOC_SOUTH, 31, 20, ROTATE_NONE ],plExits);
plExits = Cons([ 6, 10, RID_KOC_SOUTH, 31, 20, ROTATE_NONE ],plExits);

Expand All @@ -76,23 +76,24 @@ messages:
{
local lObjCoords1;

lObjCoords1 = [ [09,09,48,32,OO_JUG], [03,03,24,56,OO_JUG], [04,05,56,32,OO_anvil],
lObjCoords1 = [ [09,09,48,32,OO_JUG], [03,03,24,56,OO_JUG],
[04,05,56,32,OO_anvil],
[06,03,56,32,OO_bluejug], [12,07,16,24,OO_barrel2]
];

Send(self,@CreateOrnObjFromList,#lObjlist=lObjCoords1);
send(self,@NewHold,#what=Create(&KocatanBlacksmith),

Send(self,@NewHold,#what=Create(&KocatanBlacksmith),
#new_row=4,#new_col=4,#fine_row=56,#fine_col=48,
#new_angle=ANGLE_EAST);

% Lighting
send(self,@NewHold,#what=Create(&DynamicLight,#iColor=LIGHT_ORANGE,#iIntensity=50),
#new_row=6,#new_col=6,#fine_row=0,#fine_col=0);
Send(self,@NewHold,#what=Create(&DynamicLight,
#iColor=LIGHT_ORANGE,#iIntensity=50),
#new_row=6,#new_col=6,#fine_row=0,#fine_col=0);

propagate;
}


end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0 comments on commit 6776704

Please sign in to comment.