Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alstroemeria-silentlove
windbot
Commits
5f2de667
Commit
5f2de667
authored
Mar 29, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
facedownmonstername
parent
40c67360
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Game/AI/Dialogs.cs
Game/AI/Dialogs.cs
+9
-1
No files found.
Game/AI/Dialogs.cs
View file @
5f2de667
using
System
;
using
System
;
using
System.IO
;
using
System.IO
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Runtime.Serialization
;
using
System.Runtime.Serialization
;
...
@@ -20,6 +20,8 @@ namespace WindBot.Game.AI
...
@@ -20,6 +20,8 @@ namespace WindBot.Game.AI
[
DataMember
]
[
DataMember
]
public
string
[]
attack
{
get
;
set
;
}
public
string
[]
attack
{
get
;
set
;
}
[
DataMember
]
[
DataMember
]
public
string
facedownmonstername
{
get
;
set
;
}
[
DataMember
]
public
string
[]
activate
{
get
;
set
;
}
public
string
[]
activate
{
get
;
set
;
}
[
DataMember
]
[
DataMember
]
public
string
[]
summon
{
get
;
set
;
}
public
string
[]
summon
{
get
;
set
;
}
...
@@ -37,6 +39,7 @@ namespace WindBot.Game.AI
...
@@ -37,6 +39,7 @@ namespace WindBot.Game.AI
private
string
[]
_endturn
;
private
string
[]
_endturn
;
private
string
[]
_directattack
;
private
string
[]
_directattack
;
private
string
[]
_attack
;
private
string
[]
_attack
;
private
string
_facedownmonstername
;
private
string
[]
_activate
;
private
string
[]
_activate
;
private
string
[]
_summon
;
private
string
[]
_summon
;
private
string
[]
_setmonster
;
private
string
[]
_setmonster
;
...
@@ -54,6 +57,7 @@ namespace WindBot.Game.AI
...
@@ -54,6 +57,7 @@ namespace WindBot.Game.AI
_endturn
=
data
.
endturn
;
_endturn
=
data
.
endturn
;
_directattack
=
data
.
directattack
;
_directattack
=
data
.
directattack
;
_attack
=
data
.
attack
;
_attack
=
data
.
attack
;
_facedownmonstername
=
data
.
facedownmonstername
;
_activate
=
data
.
activate
;
_activate
=
data
.
activate
;
_summon
=
data
.
summon
;
_summon
=
data
.
summon
;
_setmonster
=
data
.
setmonster
;
_setmonster
=
data
.
setmonster
;
...
@@ -83,6 +87,10 @@ namespace WindBot.Game.AI
...
@@ -83,6 +87,10 @@ namespace WindBot.Game.AI
public
void
SendAttack
(
string
attacker
,
string
defender
)
public
void
SendAttack
(
string
attacker
,
string
defender
)
{
{
if
(
defender
==
"monster"
)
{
defender
=
_facedownmonstername
;
}
InternalSendMessage
(
_attack
,
attacker
,
defender
);
InternalSendMessage
(
_attack
,
attacker
,
defender
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment