mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-06 05:30:28 -04:00
Allow commas in coordinates.
This commit is contained in:
parent
711d7ea8ca
commit
a3d5f9fd6e
2 changed files with 7 additions and 0 deletions
6
Input.js
6
Input.js
|
@ -1193,6 +1193,7 @@ function doShowNotes(command) {
|
|||
}
|
||||
|
||||
function doCreateLocation(command) {
|
||||
command = command.replaceAll(/\s*,\s*/g, " ")
|
||||
var locationArgIndex = 2
|
||||
|
||||
var arg0 = getArgument(command, 0)
|
||||
|
@ -1241,6 +1242,7 @@ function doCreateLocation(command) {
|
|||
}
|
||||
|
||||
function doGoNorth(command) {
|
||||
command = command.replaceAll(/\s*,\s*/g, " ")
|
||||
var commandName = getCommandName(command)
|
||||
var arg0 = getArgument(command, 0)
|
||||
if (arg0 == null) arg0 = 1
|
||||
|
@ -1255,6 +1257,7 @@ function doGoNorth(command) {
|
|||
}
|
||||
|
||||
function doGoSouth(command) {
|
||||
command = command.replaceAll(/\s*,\s*/g, " ")
|
||||
var commandName = getCommandName(command)
|
||||
var arg0 = getArgument(command, 0)
|
||||
if (arg0 == null) arg0 = 1
|
||||
|
@ -1269,6 +1272,7 @@ function doGoSouth(command) {
|
|||
}
|
||||
|
||||
function doGoEast(command) {
|
||||
command = command.replaceAll(/\s*,\s*/g, " ")
|
||||
var commandName = getCommandName(command)
|
||||
var arg0 = getArgument(command, 0)
|
||||
if (arg0 == null) arg0 = 1
|
||||
|
@ -1283,6 +1287,7 @@ function doGoEast(command) {
|
|||
}
|
||||
|
||||
function doGoWest(command) {
|
||||
command = command.replaceAll(/\s*,\s*/g, " ")
|
||||
var commandName = getCommandName(command)
|
||||
var arg0 = getArgument(command, 0)
|
||||
if (arg0 == null) arg0 = 1
|
||||
|
@ -1297,6 +1302,7 @@ function doGoWest(command) {
|
|||
}
|
||||
|
||||
function doGoToLocation(command) {
|
||||
command = command.replaceAll(/\s*,\s*/g, " ")
|
||||
var character = getCharacter()
|
||||
var characterName = character == null ? "You" : character.name
|
||||
var possessiveName = getPossessiveName(characterName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue