mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Fixs the transports
This commit is contained in:
parent
91fd5820ab
commit
fd64122225
4 changed files with 5 additions and 11 deletions
|
@ -87,6 +87,7 @@
|
||||||
"location_format":" <I>You are%META% </I>",
|
"location_format":" <I>You are%META% </I>",
|
||||||
"tile_format":"<B>%TILENAME%</B>",
|
"tile_format":"<B>%TILENAME%</B>",
|
||||||
"private_notes_format":"^ATMy Private Game Notes^H^PB160|%PRIVATENOTES%^PS7|SAVE NOTES",
|
"private_notes_format":"^ATMy Private Game Notes^H^PB160|%PRIVATENOTES%^PS7|SAVE NOTES",
|
||||||
|
"transport_format":"^R1^LTransport via %METHOD% to %PLACE%^R1^I%ICON%^T4Trip Costs $%COST% one way. ^B1M%XY%^BY%ID%",
|
||||||
"exit_this_place":"^X",
|
"exit_this_place":"^X",
|
||||||
"end_of_meta":"^Z",
|
"end_of_meta":"^Z",
|
||||||
"back_to_map":"^M",
|
"back_to_map":"^M",
|
||||||
|
|
|
@ -62,14 +62,7 @@ namespace HISP.Game
|
||||||
{
|
{
|
||||||
int randomId = item.instance.RandomId;
|
int randomId = item.instance.RandomId;
|
||||||
Database.RemoveDroppedItem(randomId);
|
Database.RemoveDroppedItem(randomId);
|
||||||
for (int i = 0; i < droppedItemsList.Count; i++)
|
droppedItemsList.Remove(item);
|
||||||
{
|
|
||||||
if(droppedItemsList[i].instance.RandomId == randomId)
|
|
||||||
{
|
|
||||||
droppedItemsList.RemoveAt(i);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -322,9 +322,10 @@ namespace HISP.Game
|
||||||
int transportLocationId = transportPoint.Locations[i];
|
int transportLocationId = transportPoint.Locations[i];
|
||||||
Transport.TransportLocation transportLocation = Transport.GetTransportLocation(transportLocationId);
|
Transport.TransportLocation transportLocation = Transport.GetTransportLocation(transportLocationId);
|
||||||
message += Messages.FormatTransportMessage(transportLocation.Type, transportLocation.LocationTitle, transportLocation.Cost, transportLocation.Id, transportLocation.GotoX, transportLocation.GotoY);
|
message += Messages.FormatTransportMessage(transportLocation.Type, transportLocation.LocationTitle, transportLocation.Cost, transportLocation.Id, transportLocation.GotoX, transportLocation.GotoY);
|
||||||
if(i + 1 != transportPoint.Locations.Length)
|
|
||||||
message += "^R1";
|
|
||||||
}
|
}
|
||||||
|
message += "^R1";
|
||||||
|
message += Messages.ExitThisPlace;
|
||||||
|
message += Messages.MetaTerminator;
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
public static string BuildStatsMenu(User user)
|
public static string BuildStatsMenu(User user)
|
||||||
|
|
|
@ -54,7 +54,6 @@ namespace HISP.Server
|
||||||
Database.IncAllUsersFreeTime(1);
|
Database.IncAllUsersFreeTime(1);
|
||||||
}
|
}
|
||||||
Database.IncPlayerTirednessForOfflineUsers();
|
Database.IncPlayerTirednessForOfflineUsers();
|
||||||
|
|
||||||
DroppedItems.Update();
|
DroppedItems.Update();
|
||||||
minuteTimer.Change(oneMinute, oneMinute);
|
minuteTimer.Change(oneMinute, oneMinute);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue