defensive arrows
This commit is contained in:
parent
d20c8114ef
commit
1b38f8a047
@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
*CLIENT*
|
*CLIENT*
|
||||||
|
|
||||||
arrows alignment
|
|
||||||
purge green disable
|
purge green disable
|
||||||
rework scatter
|
rework scatter
|
||||||
hatred maybe
|
hatred maybe
|
||||||
|
|||||||
@ -46,6 +46,7 @@ class TargetSvg extends Component {
|
|||||||
const sourceY = height;
|
const sourceY = height;
|
||||||
const sourceX = (source * width / 3) + width / 6;
|
const sourceX = (source * width / 3) + width / 6;
|
||||||
const targetX = (target * width / 3) + width / 6
|
const targetX = (target * width / 3) + width / 6
|
||||||
|
+ (defensive ? width / 64 : 0)
|
||||||
+ (pathOffset * width / 32);
|
+ (pathOffset * width / 32);
|
||||||
const targetY = defensive ? height : 0;
|
const targetY = defensive ? height : 0;
|
||||||
const bendStart = height * (0.7 - 0.1 * source);
|
const bendStart = height * (0.7 - 0.1 * source);
|
||||||
|
|||||||
@ -671,8 +671,6 @@ pub fn instance_ready(params: InstanceReadyParams, tx: &mut Transaction, account
|
|||||||
pub fn instance_state(params: InstanceStateParams, tx: &mut Transaction, _account: &Account) -> Result<RpcResult, Error> {
|
pub fn instance_state(params: InstanceStateParams, tx: &mut Transaction, _account: &Account) -> Result<RpcResult, Error> {
|
||||||
let instance = instance_get(tx, params.instance_id)?;
|
let instance = instance_get(tx, params.instance_id)?;
|
||||||
|
|
||||||
println!("{:#?}", instance);
|
|
||||||
|
|
||||||
if let Some(game_id) = instance.current_game_id() {
|
if let Some(game_id) = instance.current_game_id() {
|
||||||
let game = game_get(tx, game_id)?;
|
let game = game_get(tx, game_id)?;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user