defensive arrows

This commit is contained in:
ntr 2019-06-07 13:05:43 +10:00
parent d20c8114ef
commit 1b38f8a047
3 changed files with 1 additions and 3 deletions

View File

@ -34,7 +34,6 @@
*CLIENT* *CLIENT*
arrows alignment
purge green disable purge green disable
rework scatter rework scatter
hatred maybe hatred maybe

View File

@ -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);

View File

@ -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)?;